IBMAIX系统硬件信息查看命令有哪些-创新互联
这篇文章主要介绍了IBM AIX系统硬件信息查看命令有哪些,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
成都创新互联成立于2013年,我们提供高端网站建设、成都网站制作、成都网站设计、网站定制、全网整合营销推广、小程序制作、微信公众号开发、网站推广服务,提供专业营销思路、内容策划、视觉设计、程序开发来完成项目落地,为成都雨棚定制企业提供源源不断的流量和订单咨询。一、查看型号、序列号、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
感谢你能够认真阅读完这篇文章,希望小编分享的“IBM AIX系统硬件信息查看命令有哪些”这篇文章对大家有帮助,同时也希望大家多多支持创新互联,关注创新互联-成都网站建设公司行业资讯频道,更多相关知识等着你来学习!
文章题目:IBMAIX系统硬件信息查看命令有哪些-创新互联
文章源于:http://scyanting.com/article/dgigee.html