共计 5170 个字符,预计需要花费 13 分钟才能阅读完成。
这篇文章主要介绍了 IBM AIX 系统硬件信息查看命令有哪些,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让丸趣 TV 小编带着大家一起了解一下。
一、查看型号、序列号、CPU、内存、HMC
#uname -M
IBM,8204-E8A
#uname -u
IBM,0206*****
CPU 数量
#lsdev -Cc processor
proc0 Available 00-00 Processor
proc2 Available 00-02 Processor
proc4 Available 00-04 Processor
proc6 Available 00-06 Processor
proc8Available 00-08 Processor
proc10 Available 00-10 Processor
proc12 Available 00-12 Processor
proc14 Available 00-14 Processor
CPU 主频
#lsattr -El proc0
frequency4204000000Processor SpeedFalse
smt_enabled trueProcessor SMT enabled False
smt_threads 2Processor SMT threads False
stateenableProcessor stateFalse
typePowerPC_POWER6 Processor typeFalse
CPU 是否 64 位
#prtconf -c
CPU Type: 64-bit
#lsattr -El mem0
ent_mem_capI/O memory entitlement in KbytesFalse
goodsize63744 Amount of usable physical memory in Mbytes False
mem_exp_factorMemory expansion factorFalse
size63744 Total amount of physical memory in MbytesFalse
var_mem_weightVariable memory capacity weightFalse
HMC 管理
#lsrsrc IBM.ManagementServer
Resource Persistent Attributes for IBM.ManagementServer
resource 1:
Name= 123.123.123.9
Hostname= 123.123.123.9
ManagerType= HMC
LocalHostname= 123.123.234.132
ClusterTM= 9078-160
ClusterSNum=
ActivePeerDomain =
NodeNameList= {testdb1}
#lsattr -El sys0
fwversion IBM,EL350_085 Firmware version and revision levels False
modelnameIBM,8204-E8A Machine nameFalse
realmem65273856Amount of usable physical memory in KbytesFalse
systemid IBM,0206*****Hardware system identifierFalse
#lspv
hdisk000cb01e637be5983rootvgactive
hdisk100cb01e6dd9045e6rootvgactive
[@more@]
#lspath
Enabledhdisk0 sas0
Enabledhdisk1 sas0
Available ses0sas0
Available ses1sas0
#lsdev -Cc disk
hdisk0 Available 02-08-00 SAS Disk Drive
hdisk1 Available 02-08-00 SAS Disk Drive
#bootinfo -s hdisk0
140013
#lsattr -El hdisk0
reserve_policyno_reserve Reserve PolicyTrue
size_in_mb146800Size in MegabytesFalse
#lscfg -vpl hdisk0
hdisk0U78A0.001.DNWK9W6-P2-D3SAS Disk Drive (146800 MB)
Hardware Location Code……U78A0.001.DNWK9W6-P2-D3
bootinfo - s 查看磁盘容量,执行 lsattr -El 查看磁盘属性、执行 lscfg -vpl 查看磁盘物理插槽、lspv 查看磁盘 pv 信息等。
echo #lsdev -Cc disk
lsdev -Cc disk
for i in `lsdev -Cc disk|awk {print $1}
do
echo nInformation about $i n#bootinfo -s $i
bootinfo -s $i
echo n#lsattr -El $i
lsattr -El $i
echo n#lscfg -vpl $i
lscfg -vpl $i
echo n#lspv $i
lspv $i
done
#lsdev -Cc adapter|grep ent
ent0AvailableLogical Host Ethernet Port (lp-hea)
ent1AvailableLogical Host Ethernet Port (lp-hea)
ent2 Available 04-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
ent3Available 04-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
ent4AvailableEtherChannel / IEEE 802.3ad Link Aggregation
ent4 通过以太网通道绑定后生成的网卡,执行 lsattr -El ent4 可以查看 ent4 由哪些网卡绑定而成,是主备模式、负载均衡模式或者负载均衡 + 主备模式。
#lsattr -El ent4
adapter_namesent0EtherChannel Adapters True
auto_recoveryyesEnable automatic recovery after failoverTrue
backup_adapterent2 Adapter used when whole channel failsTrue
modestandardEtherChannel mode of operation True
netaddr0 Address to pingTrue
#lscfg -vpl ent2
ent2 U78A0.001.DNWK58T-P1-C1-T12-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
Hardware Location Code……U78A0.001.DNWK58T-P1-C1-T1
#lsattr -El en4
netaddr123.123.123.61 Internet AddressTrue
netmask 255.255.255.128Subnet Mask True
stateup Current Interface StatusTrue
#netstat -in
#netstat -rn
#ifconfig -a
#ifconfig -l
#netstat -v en4 |grep -i Speed
Media Speed Selected: Autonegotiate
Media Speed Running: 1000 Mbps / 1 Gbps, Full Duplex
External-Network-Switch (ENS) Port Speed: 1000 Mbps / 1 Gbps, Full Duplex
Media Speed Selected: Auto negotiation
Media Speed Running: 1000 Mbps Full Duplex
echo #lsdev -Cc adapter|grep ent
lsdev -Cc adapter|grep ent
for i in `lsdev -Cc adapter|awk {print $1} |grep ent`;
do
echo nInformation about $i n#lsattr -El $i
lsattr -El $i
echo n#lscfg -vl $i
lscfg -vl $i
done
for i in `ifconfig -l`;
do
echo nInformation about $i n#lsattr -El $i
lsattr -El $i
echo n#netstat -v $i
netstat -v $i
echo n#netstat -v $i |grep -i Speed
netstat -v $i |grep -i Speed
done
HBA 卡信息
#lsdev -Cc adapter|grep fcs
fcs0Available 01-08 FC Adapter
fcs1Available 01-09 FC Adapter
fcs2Available 04-08 FC Adapter
fcs3Available 04-09 FC Adapter
#lsattr -El fcs0
HBA 卡的物理插槽、WWN:
#lscfg -vpl fcs0
fcs0U78A0.001.DNWK9W6-P1-C4-T1FC Adapter
Network Address………….10000000C9B54A92
Hardware Location Code……U78A0.001.DNWK9W6-P1-C4-T1
Network Address 即为 fcs0 的 WWN。
HBA 卡数量未知的情况下,可以采用以下脚本一次性收集所有 HBA 卡的物理插槽、WWN 信息,这点项目中非常经常用到,因为需要收集 HBA 卡的 WWN 用于 SAN 交换机配置 ZONE 信息、存储端也需要 WWN 用于 Mapping LUN:
echo #lsdev -Cc adapter|grep fcs
lsdev -Cc adapter|grep fcs
for i in `lsdev -Cc adapter|grep fcs|awk {print $1}
do
echo nInformation about $i n#lsattr -El $i
lsattr -El $i
echo n#lscfg -vpl $i
lscfg -vl $i
echo n#fcstat $i
fcstat $i
done
tape 信息
#lsdev -Cc tape
rmt0 Available 02-08-00 SAS 4mm Tape Drive
#lsattr -El rmt0
#lscfg -vpl rmt0
rmt0U78A0.001.DNWK9W6-P2-D1SAS 4mm Tape Drive (80000 MB)
Hardware Location Code……U78A0.001.DNWK9W6-P2-D1
tape driver 数量未知的情况下,可以采用以下脚本一次性收集所有 tape driver 信息:
echo #lsdev -Cc tape
lsdev -Cc tape
for i in `lsdev -Cc tape|awk {print $1} `
do
echo nInformation about $i n#lsattr -El $i
lsattr -El $i
echo n#lscfg -vl $i
lscfg -vl $i
done
VG、PV、LV 信息
VG
#lsvg
rootvg
vgora
active 的 VG
#lsvg -o
vgora
rootvg
#lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPsFREE DISTRIBUTION
hdisk0active558429 111..68..27..111..112
hdisk1active558 437111..76..27..111..112
#lsvg -l rootvg
PV
#lspv
hdisk000cb01e637be5983rootvgactive
hdisk100cb01e6dd9045e6rootvgactive
#lspv -l hdisk0
VG 数量未知时,可用以下脚本一次性收集所有 VG、LV 信息(可结合上文 disk 信息)
echo #lsvg
lsvg
echo #lsvg -o
lsvg -o
for i in `lsvg`;
do
echo nInformation about VG $i n#lsvg $i
lsvg $i
echo n#lsvg -l $i
lsvg -l $i
echo n#lsvg -p $i
lsvg -p $i
echo n#lsvg -M $i
lsvg -M ${i}
done
感谢你能够认真阅读完这篇文章,希望丸趣 TV 小编分享的“IBM AIX 系统硬件信息查看命令有哪些”这篇文章对大家有帮助,同时也希望大家多多支持丸趣 TV,关注丸趣 TV 行业资讯频道,更多相关知识等着你来学习!