您好,登錄后才能下訂單哦!
這篇文章主要介紹了IBM AIX系統硬件信息查看命令有哪些,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。
一、查看型號、序列號、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系統硬件信息查看命令有哪些”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關注億速云行業資訊頻道,更多相關知識等著你來學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。