比思論壇

標題: AIX硬件管理常用命令 [打印本頁]

作者: wabb44400    時間: 2012-9-3 12:06
標題: AIX硬件管理常用命令
AIX硬件管理常用命令:


一、最全的命令:prtconf  或lscfg命令

二、AIX内核信息
系统内核位数:bootinfo -K

处理器位数: #bootinfo -y

三、CPU
查看CPU厂商、颗数:
lsconf |grep Processor 或 prtconf |grep Processor

查看几颗CPU
lsdev -Cc processor

查看几核
bindprocessor -q

查看CPU处理位数
getconf HARDWARE_BITMODE

查看逻辑CPU个数 pmcycles -m

查看物理CPU个数 prtconf|grep Processors

查看单个CPU的详细信息 lsattr -E -l proc0

查看CPU的主频pmcycles

查看CPU L1、L2 Cache
lsattr -El L2cache0

查看L3 Cache
lscfg -vp|grep cache


四、内存
查看物理内存配置
lsdev -Cc memory 或bootinfo -r


查看物理内存尺寸
prtconf|grep "Memory Size"


五、硬盘
查看硬盘
lsdev -Cc disk

查看磁盘型号
lscfg -vl hdisk0


六、适配卡
查看所有适配卡
lsdev -Cc adapter

查看物理网卡适配卡的个数与类型
lsdev -Cc adapter|grep ent

查看物理网卡详细信息
lscfg -vl ent0

查看物理网卡的工作模式
netstat -v ent0 | grep -p "Specific Statistics"

查看详细属性
lsattr -El ent0 ( 物理设备名 )

查看物理网卡的驱动方法
#lsdev -Cc adapter|grep ent
ent0      Available 0D-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
lslpp -l |grep 14108902


七、查看服务器微码
lsmcode


八、AIX芯片类型
uname -a 显示系统名称、节点名称、版本、计算机 ID
uname -M 显示系统型号名称


九、查看版本
oslevel -qr


十、AIX光盘挂载方法
mount -V cdrfs -o ro /dev/cd0  /mnt/cd
umount /mnt/cd

linux比较:
mount  /dev/cdrom  /mnt/cd
umount /mnt/cd


十一、AIX插槽位
查看当前服务器所有的PCI lsslot -c pci

网卡插槽位lsdev -Cc adapter|grep en

磁盘插槽位 lsdev -Cc disk




十二、消耗内存和CPU进程
显示10个消耗cpu最多的进程
ps aux |head -1 ;ps aux |sort -rn +2 |head -10

显示10个消耗内存最多的进程
ps vx |head -1 ;ps vx |grep -v PID |sort -rn +6 |head -10

显示10个换页最多的进程
ps vx |head -1 ;ps vx |grep -v PID |sort -rn +4 |head -10

显示10个消耗存储空间最多的进程
ps aux |head -1 ;ps aux |sort -rn +3 |head -10


十三、sys0设备查看
lsattr -El sys0




十四、重命名设备名
rendev -l hdisk2 -n dbdisk1
lspv


十五、修改系统参数
修改系统时区    # smit chtz
修改系统时间    # smit date
更改最大进程数  # smit chgsys  
更改系统用户数  # smit chlicense   参数记录于/etc/security/login.cfg文件
配置主机名和IP  # smit mktcpip



十六、创建磁盘启动镜像。
创建磁盘启动镜像
#bosboot -ad  /dev/hdisk0

查看启动顺序
#bootlist -m normal  -o

设置启动顺序
#bootlist -m normal hdisk0 hdisk1





歡迎光臨 比思論壇 (http://108.170.5.77/) Powered by Discuz! X2.5