AIX --- 常用命令
# 類似于linux? top命令: 不太好用
nmon topas# 查看內存? ?GB為單位
svmon -O unit=GB svmon -G -O unit=GB# cpu查看命令:
AIX如何查看cpu個數_白及-CSDN博客_aix查看cpu個數
# AIX常用命令
df -g # 等同于 linux的 df -h netstat -Aan|grep 6666 # 等同于 linux -lntp ifconfig -a # 查看ip# 防火墻
smit2.??????選擇以下子項開啟或關閉防火墻
Communications Applications and Services->Tcp IP->Configure Ip Security(IPv4)->Start/Stop IP Security->Start IP Security
3.??????也可以使用以下子項對防火墻進行配置
Communications Applications and Services->Tcp IP->Configure Ip Security(IPv4)->Start/Stop IP Security->Advantanced IP Security Configuration
-----------------------------------------------------------命令搜集
1、??uname –a
顯示完整系統名和版本欄
AIX kjdb1 1 6 00C00CD32C00
操作系統名?節點名稱?操作系統的發行版號?操作系統版本硬件運行系統的機器ID號
2、??lsdev -C | grep proc/lsdev –C –c processor
查看CPU數量
3、??bootinfo –r /lsattr -El sys0 -a realmem
顯示物理內存大小
4、??ldev –Cc disk/lspv
查看硬盤信息
5、??lspv –l hdiskX/lscfg –vl hdiskX/lscfg –vp
查看磁盤詳細信息
6、??lsdev –Cc adapter
查看系統中已安裝的適配器信息
7、??netstat –ni
查看網絡狀態
8、??errpt
查看有無報錯信息
9、??errpt –aj?狀態碼
查看詳細報錯信息
10、oslevel –r
查看操作系統版本
11、instfix –i | grep AIX_ML
查看操作系統文件集相關信息
12、lppchk -v
????驗證所有的文件集已具備所有要求的必要條件并且已安裝
13、lsvg/lsvg –l ***vg
顯示卷組相關信息,顯示相關卷組的詳細信息
14、lsps –a
顯示交換空間的大小及使用率
15、env | grep TZ
顯示時區信息
16、lssrc –g cluster
顯示HACMP狀態
17、prtconf | grep Firmware
查看系統微碼相關信息
18、df
查看磁盤利用率
19、sar 2 4
查看系統活動信息
20、vmstat
查看虛擬內存統計信息
21、bootinfo –y
????查看系統內核版本
22、cfgmgr -v
??? 在硬件丟失或需要添加新硬件時,可以通過此命令使AIX自動搜索新硬件的驅動程序
23、lsvg -l rootvg
??? 查看rootvg中的邏輯卷是否做了鏡像,若邏輯卷中的PPs是LPs的兩倍,同事PV數是2,則說明做了邏輯卷
24、smitty chinet
?? 修改對應網卡的信息
-----------------------------------------------------------------AIX掛載
1: first know the Storage server:
? NFS server: nfs_server01
? dev: /vol/123_VL
?
2:?add the NFS server in client server:
? /etc/hosts
?
3: ping NFS server, if reply succcess, then can considered the NFS server can configure success.
4:?show the NFS server exported filesystem:
? showmount -e NFS_server01
?
? The result will show:
? /vol/NFS_server01_data/test01?? ??? ?10.20.30.40/27
4: Add the NFS configuration in client: /etc/filesystems:
?
? /data/test01:
? dev?? ??? ?= /vol/NFS_server01_data/test01
? vfs?? ??? ?=?? ?nfs
? nodename?? ?= nfs_server01
? mount?? ??? ??? ?= true
? options?? ??? ?= bg,hard,llock,intr,biods,rsize=65536,wsize=65536,vers=3,proto=tcp,sec=sys,maxgroups=32
? account?? ??? ?= false
?
5 c?reate the folder in server:
? mkdir -p /data/test01
?
6:?mount filesystem:
? mouunt -o bg,hard,llock,intr,biods,rsize=65536,wsize=65536,vers=3,proto=tcp,sec=sys,maxgroups=32, rw nfs_server01:/vol/NFS_server01_data/test01 /data/test01
?
7: checked the mount system:
? mount | grep test01
?
-------------
Below actical is for reference:
AIX 6.1? ?
--
In the NFS server:
1. start the NFS service:
# lssrc? -g? nfs
# startsrc? -g nfs
# lssrc? -g? nfs ?
active is okay
2.configure the /etc/hosts file:
# vi? /etc/hosts
10.88.51.87??? NFS_server_hostname?
3.configure
# vi? /etc/exports
/data02? -rw,access=?NFS_server_name??? ?
--
In the client server:
1. mkdir -p? /data/d3
2.check the client portmap service
# lssrc? -s??portmap? (active is ok)
總結
以上是生活随笔為你收集整理的AIX --- 常用命令的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Android开发】自定义圆角butt
- 下一篇: AIX 是什么?AIX和UNIX的关系是