View the information commands of the cpu, memory, Nic, hard disk, and memory card of the AIX system, view the host model, serial number, CPU, memory, hard disk, Nic, and nic physical slot information of the AIX system, and whether to configure Ethernet channel, Nic link status, current network rate, HbA card, physical slot location information of HbA card, HbA card WWN, HbA card support rate, HbA card current rate, VG, PV, LV information, the host is currently which HMC manages and configures how many tape drive tape driver and other information, you can use a script to collect all the information. 1. View model, serial number, CPU, memory, and HMC model: # uname-MIBM, 8204-E8A serial number: # uname-uIBM, 0206 * Number of CPUs # lsdev-Cc processorproc0 Available 00-00 running Available 00-02 running Available 00-04 Processorproc6 Available 00-06 Processorproc8 Available 00-08 Processorproc10 Available 00 -10 Processorproc12 Available 00-12 Processorproc14 Available 00-14 Processor cpu # lsattr-El proc0frequency 4204000000 Processor Speed Falsesmt_enabled true Processor SMT enabled Falsesmt_threads 2 Processor SMT threads Falsestate enable Processor state Falsetype PowerPC_POWER6 Processor type False check whether the CPU is 64-bit # prtconf-cCPU Type: 64-bit Memory information: # lsattr-El mem0ent_mem_cap I/O memory entitlement in Kbytes Falsegoodsize 63744 Amount of usable physical memory in Mbytes Falsemem_exp_factor Memory expansion factor Falsesize 63744 Tal amount of physical memory in Mbytes Falsevar_mem_weight Variable memory capacity weight False check which HMC manages the machine # lsrsrc IBM. managementServerResource Persistent Attributes for IBM. managementServerresource 1: name = "canonical" Hostname = "123.123.123.9" ManagerType = "HMC" LocalHostname = "canonical" ClusterTM = "9078-160" ClusterSNum = "" ActivePeerDomain = "" NodeNameList = {"testdb1 "} model, serial number, and memory information: # ls Attr-El sys0fwversion IBM, EL350_085 Firmware version and revision levels Falsemodelname IBM, 8204-E8A Machine name Falserealmem 65273856 Amount of usable physical memory in Kbytes Falsesystemid IBM, 0206 ***** Hardware system identifier False II. view disk information: # lspvhdisk0 kernel rootvg activehdisk1 kernel rootvg active # lspathEnabled hdisk0 sas0Enabled hdisk1 sas0Available ses0 sas0Availa Ble ses1 sas0 list all Disk devices # lsdev-Cc diskhdisk0 Available 02-08-00 SAS Disk Drivehdisk1 Available 02-08-00 SAS Disk Drive view Disk capacity # bootinfo-s hdisk0140013 view Disk attribute # lsattr-El hdisk0reserve_policy no_reserve Reserve Policy Truesize_in_mb 146800 Size in Megabytes False view Disk Physical slot information # lscfg-vpl hdisk0hdisk0 U78A0.001.DNWK9W6-P2-D3 SAS Disk Drive (146800 MB) hardware Location Code ...... u78A0.001.DNWK9W6-P2-D3 and above commands apply To view the hard disks on site, execute several commands. However, when the user needs to collect information and the number of system disks is unknown, the following script lists all the disk information of the Local Machine and runs bootinfo-s on each disk to view the disk capacity, run lsattr-El to view disk properties, run lscfg-vpl to view Disk Physical slots, and run lspv to view disk pv information. 1. echo "# lsdev-Cc disk" 2. lsdev-Cc disk 3. for I in 'lsdev-Cc disk | awk & apos; {print $1} & apos; '; 4. do 5. echo "nInformation about" $ I "n # bootinfo-s" $ I 6. bootinfo-s $ I 7. echo "n # lsattr-El" $ I 8. lsattr-El $ I 9. echo "n # lscfg-vpl" $ I 10. lscfg-vpl $ I 11. echo "n # lspv" $ I 12. lspv $ I 13. done copy code 3. View Nic information # lsdev-Cc adapter | grep entent0 Available Logical Host Ethernet Port (lp-hea) ent1 Available Logical Host Ethernet Port (lp-hea) ent2 Available 04-00 2-Port 10/100/1000 Base-tx pci-Express Adapter (14104003) ent3 Available 04-01 2-Port 10/100/1000 Base-tx pci-Express Adapter (14104003) ent4 Available EtherChannel/IEEE 802.3ad Link Aggregation information above shows the network adapter generated after ent4 is bound through the Ethernet channel. Run lsattr-El ent4 to check which network adapter is bound to ent4, it is the Master/Slave Mode, Server Load balancer mode, or Server Load balancer + Master/Slave Mode. # Lsattr-El effecent0 EtherChannel Adapters provided yes Enable automatic IC recovery after failover provided ent2 Adapter used when whole channel fails Truemode standard EtherChannel mode of operation Truenetaddr 0 Address to ping True # lscfg-vent2ent2 u78A0.001.DNWK58T-P1-C1-T1 2-Port 10/100/1000 Base-tx pci-Express Adapter (14104003) hardware Location Code ...... u78 A0.001.DNWK58T-P1-C1-T1 # lsattr-El en4netaddr 123.123.123.61 Internet Address Truenetmask bandwidth limit 128 Subnet Mask Truestate up Current Interface Status True # netstat-in # netstat-rn # ifconfig-a # ifconfig-l view the Current Nic connection Status, link rate # netstat-v en4 | grep-I SpeedMedia Speed Selected: autonegotiateMedia Speed Running: 1000 Mbps/1 Gbps, Full DuplexExternal-Network-Switch (ENS) Port Speed: 1000 Mbps/1 Gbps, Full DuplexMedia Speed Selected: Auto negotiationMedia Speed Running: 1000 Mbps Full Duplex when the number of NICS is unknown, you can use the following script to collect all Nic information at a time: 1. echo "# lsdev-Cc adapter | grep ent" 2. lsdev-Cc adapter | grep ent 3. for I in 'lsdev-Cc adapter | awk & apos; {print $1} & apos; | grep ent '; 4. do 5. echo "nInformation about" $ I "n # lsattr-El" $ I 6. lsattr-El $ I 7. echo "n # lscfg-vl" $ I 8. lscfg-vl $ I 9. done 10. for I in 'Ifconfig-l'; 11. do 12. echo "nInformation about" $ I "n # lsattr-El" $ I 13. lsattr-El $ I 14. echo "n # netstat-v" $ I 15. netstat-v $ I 16. echo "n # netstat-v" $ I "| grep-I Speed" 17. netstat-v $ I | grep-I Speed 18. done copy Code 4. HbA card information # lsdev-Cc adapter | grep fcsfcs0 Available 01-08 FC Adapterfcs1 Available 01-09 FC Adapterfcs2 Available 04-08 FC Adapterfcs3 Available 04-09 FC Adapter # lsattr-El f Cs0 view physical slot of the hosts card, WWN: # lscfg-vpl fcs0fcs0 U78A0.001.DNWK9W6-P1-C4-T1 FC AdapterNetwork Address ............. 000c9b54a92hardware Location Code ...... u78A0.001.DNWK9W6-P1-C4-T1 and above Network Address is fcs0 WWN. When the number of hosts card is unknown, you can use the following script to collect the physical slots and WWN information of all hosts cards at a time. This is frequently used in this project, because the WWN of the hosts card needs to be collected for the SAN Switch configuration ZONE information, and the storage end also needs WWN for the Mapping LUN: 1. echo "# lsdev-Cc adapter | grep fcs" 2. lsdev-Cc adapter | grep fcs 3. for I in 'lsdev-Cc adapter | grep fcs | awk & apos; {print $1} & apos; '; 4. do 5. echo "nInformation about" $ I "n # lsattr-El" $ I 6. lsattr-El $ I 7. echo "n # lscfg-vpl" $ I 8. lscfg-vl $ I 9. echo "n # fcstat" $ I 10. fcstat $ I 11. done copy Code 5, tape Tape information # lsdev-Cc tapermt0 Available 02-08-00 SAS 4mm Tape Drive # lsattr-El rmt0 # lscfg-vpl rmt0rmt0 U78A0.001.DNWK9W6-P2-D1 SAS 4mm tape Drive (80000 MB) hardware Location Code ...... u78A0.001.DNWK9W6-P2-D1 when the host is connected to the tape library, the number of tape driver is unknown, you can use the following script to collect all the tape driver information at a time: 1. echo "# lsdev-Cc tape" 2. lsdev-Cc tape 3. for I in 'lsdev-Cc tape | awk & apos; {print $1} & apos; '4. do 5. echo "nInformation about" $ I "n # lsattr-El" $ I 6. lsattr-El $ I 7. echo "n # lscfg-vl" $ I 8. lscfg-vl $ I 9. done copy Code 6. View VG, PV, and LV Information view all VG # lsvgrootvgvgora in the system view the active VG # lsvg-ovgorarootvg # lsvg-p rootvgrootvg: PV_NAME pv state total PPs FREE DISTRIBUTIONhdisk0 active 558 429 111 .. 68 .. 27 .. 111 .. 112hdisk1 active 558 437 111 .. 76 .. 27 .. 111 .. 112 # lsvg-l rootvg view all PVS # lspvhdisk0 00cb01e637be5983 rootvg activehdisk1 00cb01e6dd9045e6 rootvg active # lspv-l hdisk0 when the number of VG is unknown, use the following script to collect all VG and LV information at a time (which can be combined with the above disk information) echo "# lsvg" lsvgecho "# lsvg-o" lsvg-ofor I in 'lsvg '; doecho "nInformation about VG" $ I "n # lsvg" $ ilsvg $ iecho "n # lsvg-l" $ ilsvg-l $ iecho "n # lsvg-p" $ ilsvg- p $ iecho "n # lsvg-M" $ ilsvg-M $ {I} done