AIX:【Machine Serial Number】以及巡检信息查询
需求如题,具体实现如下:
服务器型号:
1 2 3 |
root@AIX_Me:/ # prtconf | grep "System Model" System Model: IBM,9117-MMA root@AIX_Me:/ # |
服务器序列号:
1 2 3 |
root@AIX_Me:/ # prtconf | grep "Machine Serial Number" Machine Serial Number: 06D7691 root@AIX_Me:/ # |
操作系统版本:
1 2 3 |
root@AIX_Me:/ # oslevel 6.1.0.0 root@AIX_Me:/ # |
CPU信息:数量
1 2 3 4 5 6 7 8 9 |
root@AIX_Me:/ # lsdev -Cc processor proc0 Available 00-00 Processor proc2 Available 00-02 Processor proc4 Available 00-04 Processor root@AIX_Me:/ # root@AIX_Me:/ # bindprocessor -q The available processors are: 0 1 2 3 4 5 root@AIX_Me:/ # |
CPU信息:型号
1 2 3 |
root@AIX_Me:/ # lsattr -El proc0 | grep type type PowerPC_POWER6 Processor type False root@AIX_Me:/ # |
CPU信息:频率
1 2 3 |
root@AIX_Me:/ # lsattr -El proc0 | grep frequency frequency 4704000000 Processor Speed False root@AIX_Me:/ # |
CPU信息:SMT
Simultaneous multi-threading,该功能从AIX 5.3开始被引用。
该功能允许两个处理线程在同一颗CPU上运行。
对于操作系统来说,启用了该功能,一颗物理CPU逻辑上会被划分为两个处理单元,也就是两个逻辑处理器。
所以:
如果该功能启用:
逻辑CPU的个数 = 物理CPU的个数 * 2
如果该功能禁用:
逻辑CPU的个数 = 物理CPU的个数
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
root@AIX_Me:/ # smtctl This system is SMT capable. This system supports up to 2 SMT threads per processor. SMT is currently enabled. SMT boot mode is not set. SMT threads are bound to the same physical processor. proc0 has 2 SMT threads. Bind processor 0 is bound with proc0 Bind processor 1 is bound with proc0 proc2 has 2 SMT threads. Bind processor 2 is bound with proc2 Bind processor 3 is bound with proc2 proc4 has 2 SMT threads. Bind processor 4 is bound with proc4 Bind processor 5 is bound with proc4 root@AIX_Me:/ # |
内存:容量
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
root@AIX_Me:/ # vmstat System configuration: lcpu=6 mem=23552MB kthr memory page faults cpu ----- ----------- ------------------------ ------------ ----------- r b avm fre re pi po fr sr cy in sy cs us sy id wa 1 1 1403550 4507184 0 0 0 0 0 0 15 1057 791 0 0 99 0 root@AIX_Me:/ # root@AIX_Me:/ # svmon -G size inuse free pin virtual mmode memory 6029312 1522452 4506860 1071164 1403862 Ded pg space 7864320 7011 work pers clnt other pin 891540 0 0 179624 in use 1403862 0 118590 PageSize PoolSize inuse pgsp pin virtual s 4 KB - 447972 7011 239644 329382 m 64 KB - 67155 0 51970 67155 root@AIX_Me:/ # |
内存:设备
1 2 3 4 |
root@AIX_Me:/ # lsdev -Cc memory L2cache0 Available L2 Cache mem0 Available Memory root@AIX_Me:/ # |
内存:物理内存
1 2 3 4 5 6 7 8 9 10 11 |
root@AIX_Me:/ # bootinfo -r 24117248 root@AIX_Me:/ # root@AIX_Me:/ # lsattr -El mem0 ent_mem_cap I/O memory entitlement in Kbytes False goodsize 23552 Amount of usable physical memory in Mbytes False mem_exp_factor Memory expansion factor False size 23552 Total amount of physical memory in Mbytes False var_mem_weight Variable memory capacity weight False root@AIX_Me:/ # |
内存:详细使用的情况
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
root@AIX_Me:/ # vmstat -v 6029312 memory pages 5841288 lruable pages 4506997 free pages 8 memory pools 1071164 pinned pages 80.0 maxpin percentage 3.0 minperm percentage 90.0 maxperm percentage 1.7 numperm percentage 102871 file pages 0.0 compressed percentage 0 compressed pages 1.7 numclient percentage 90.0 maxclient percentage 102871 client pages 0 remote pageouts scheduled 0 pending disk I/Os blocked with no pbuf 0 paging space I/Os blocked with no psbuf 2228 filesystem I/Os blocked with no fsbuf 1241 client filesystem I/Os blocked with no fsbuf 0 external pager filesystem I/Os blocked with no fsbuf 23.5 percentage of memory used for computational pages root@AIX_Me:/ # |
硬盘设备(外存)
1 2 3 4 5 6 7 8 9 10 11 12 |
root@AIX_Me:/ # lsdev -Cc disk hdisk0 Available 07-08-00 SAS Disk Drive hdisk1 Available 07-08-00 SAS Disk Drive hdisk2 Available 05-00-02 Huawei XSG1 FC Disk Drive hdisk3 Defined 05-00-02 Other FC SCSI Disk Drive hdisk4 Available 05-00-02 Huawei XSG1 FC Disk Drive hdisk5 Defined 05-00-02 Huawei XSG1 FC Disk Drive hdisk6 Available 05-00-02 Huawei XSG1 FC Disk Drive hdisk7 Available 05-00-02 Huawei XSG1 FC Disk Drive hdisk8 Available 05-00-02 Huawei XSG1 FC Disk Drive hdisk9 Available 05-00-02 Huawei XSG1 FC Disk Drive root@AIX_Me:/ # |
硬盘:容量
1 2 3 |
root@AIX_Me:/ # lsattr -El hdisk0 | grep size size_in_mb 146800 Size in Megabytes False root@AIX_Me:/ # |
磁带机 / 光驱 / 软驱
1 2 3 4 5 6 |
root@AIX_Me:/ # lsdev -Cc tape root@AIX_Me:/ # root@AIX_Me:/ # lsdev -Cc cdrom root@AIX_Me:/ # root@AIX_Me:/ # lsdev -Cc diskette root@AIX_Me:/ # |
网络适配器:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
root@AIX_Me:/ # lsdev -Cc adapter ent0 Available 03-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) ent1 Available 03-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) 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 06-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) ent5 Available 06-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) fcs0 Available 05-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs1 Available 05-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) sa0 Available 01-08 2-Port Asynchronous EIA-232 PCI Adapter sissas0 Available 07-08 PCI-X266 Planar 3Gb SAS Adapter usbhc0 Available 08-08 USB Host Controller (33103500) usbhc1 Available 08-09 USB Host Controller (33103500) usbhc2 Available 08-0a USB Enhanced Host Controller (3310e000) vsa0 Available LPAR Virtual Serial Adapter root@AIX_Me:/ # |
网卡:【ent】
光纤通道卡(HBA):【fcs】
磁带机:【rmt】
————————————————
Done。