溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

IBM AIX系統(tǒng)硬件信息查看命令有哪些

發(fā)布時(shí)間:2021-12-20 10:18:33 來(lái)源:億速云 閱讀:115 作者:小新 欄目:服務(wù)器

這篇文章主要介紹了IBM AIX系統(tǒng)硬件信息查看命令有哪些,具有一定借鑒價(jià)值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

一、查看型號(hào)、序列號(hào)、CPU、內(nèi)存、HMC

#uname -M

IBM,8204-E8A

#uname -u

IBM,0206*****

CPU數(shù)量

#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查看磁盤容量,執(zhí)行lsattr -El查看磁盤屬性、執(zhí)行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通過(guò)以太網(wǎng)通道綁定后生成的網(wǎng)卡,執(zhí)行lsattr -El ent4可以查看ent4由哪些網(wǎng)卡綁定而成,是主備模式、負(fù)載均衡模式或者負(fù)載均衡+主備模式。

#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即為fcs0WWN

HBA卡數(shù)量未知的情況下,可以采用以下腳本一次性收集所有HBA卡的物理插槽、WWN信息,這點(diǎn)項(xiàng)目中非常經(jīng)常用到,因?yàn)樾枰占?span lang="EN-US">HBA卡的WWN用于SAN交換機(jī)配置ZONE信息、存儲(chǔ)端也需要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數(shù)量未知的情況下,可以采用以下腳本一次性收集所有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、PVLV信息

VG

#lsvg

rootvg

vgora

activeVG

#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數(shù)量未知時(shí),可用以下腳本一次性收集所有VGLV信息(可結(jié)合上文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

感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“IBM AIX系統(tǒng)硬件信息查看命令有哪些”這篇文章對(duì)大家有幫助,同時(shí)也希望大家多多支持億速云,關(guān)注億速云行業(yè)資訊頻道,更多相關(guān)知識(shí)等著你來(lái)學(xué)習(xí)!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI