天天看點

AIX 系統收集資訊

1.uname  -uM                                       //檢視機器序列号

[P55A#/]uname  -uM

IBM,9133-55A IBM,03064E69H

2.oslevel  -s                                         //檢視作業系統版本

[P55A#/]oslevel  -s

6100-07-04-1216

3.檢視CPU資訊:

lsdev -C|grep proc                               //檢視cpu資訊,可以檢視CPU個數

[P55A#/]lsdev -C|grep proc

proc0      Available 00-00         Processor

4.bootinfo  -r                                       //檢視記憶體資訊

[P55A#/]bootinfo  -r

12124160                                           //以KB為機關

prtconf  -m                                          //檢視記憶體資訊,系統總配置記憶體

[P55A#/]prtconf  -m

Memory Size: 11840 MB

lsdev  -Cc memory                             //檢視實體記憶體配置情況

[P55A#/]lsdev  -Cc  memory

L2cache0 Available  L2 Cache

mem0     Available  Memory

lsattr -El mem0                                        //檢視記憶體資訊,可以檢視到總安裝記憶體以及可使用記憶體

[P55A#/]lsattr -El mem0

ent_mem_cap          I/O memory entitlement in Kbytes           False

goodsize       11840 Amount of usable physical memory in Mbytes False

mem_exp_factor       Memory expansion factor                    False

size           11840 Total amount of physical memory in Mbytes  False

var_mem_weight       Variable memory capacity weight            False

5.topas                                            //檢視cup、記憶體使用率

                                                        //記憶體百分比=(%comp+%Noncomp)

6.prtconf                                          //顯示系統所有配置資訊,系統型号、序列号、處理器數量、記憶體大小、檔案系統資訊、分頁空間大小、裝置資訊。

[P55A#/]prtconf  -m

Memory Size: 11840 MB

[P55A#/]prtconf

System Model: IBM,9133-55A

Machine Serial Number: 064E69H

Processor Type: PowerPC_POWER5

Processor Implementation Mode: POWER 5

Processor Version: PV_5_2

Number Of Processors: 1

Processor Clock Speed: 1648 MHz

CPU Type: 64-bit

Kernel Type: 64-bit

LPAR Info: 1 AIX6

Memory Size: 11840 MB

Good Memory Size: 11840 MB

Platform Firmware level: SF240_320

Firmware Version: IBM,SF240_320

Console Login: enable

Auto Restart: true

Full Core: false

Network Information

        Host Name: P55A

        IP Address: 192.168.10.100

        Sub Netmask: 255.255.255.0

        Gateway: 192.168.10.254

        Name Server: 

        Domain Name: 

Paging Space Information

        Total Paging Space: 512MB

        Percent Used: 2%

Volume Groups Information

============================================================================== 

Active VGs

============================================================================== 

rootvg:

PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION

hdisk1            active            546         177         68..00..00..00..109

hdisk0            active            546         262         109..00..00..44..109

============================================================================== 

7.lsdev                                                            //用于顯示系統中的裝置資訊和裝置特性,-C 從使用者定義的庫中顯示裝置資訊,-c Class 指定裝置類名。

lsdev  -Cc  disk                                               //檢視可用硬碟         

[P55A#/]lsdev  -Cc  disk

hdisk0 Available 03-08-01-3,0 16 Bit LVD SCSI Disk Drive

hdisk1 Available 03-08-01-5,0 16 Bit LVD SCSI Disk Drive                

lsdev  -Cc  tape                                              //檢視錄音帶機的狀态是否可用

[P55A#/]lsdev  -Cc  tape

rmt0 Available 03-08-00-0,0 LVD SCSI 4mm Tape Drive

lsdev  -Cc  adapter                                         //檢視可用的PCI卡

[P55A#/]lsdev  -Cc  adapter

ent0      Available 00-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

ent1      Available 00-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

ent2      Available 07-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

ent3      Available 07-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

fcs0      Available 05-08 FC Adapter

ide0      Available 04-08 ATA/IDE Controller Device

sisscsia0 Available 03-08 PCI-X Dual Channel Ultra320 SCSI 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    

lsdev  -Cc  processor                                        //檢視可用的cpu

[P55A#/]lsdev  -Cc processor

proc0 Available 00-00 Processor                            

8.lscfg                                                               //顯示系統的配置資訊、診斷資訊和重要産品資料(VPD)資訊

-l Name    顯示已命名裝置的裝置資訊。

-p    顯示特定于平台的裝置資訊。該标志僅僅适用于 AIX 4.2.1 或更新版本。

-v    顯示定制 VPD 對象類中找到的 VPD。同樣的,與 -p 标志一起使用時,可以顯示 AIX 4.2.1 或更新版本上特定于平台的 VPD。

-s    單行顯示從名稱到位置的裝置描述。

lscfg

INSTALLED RESOURCE LIST

The following resources are installed on the machine.

+/- = Added or deleted from Resource List.

*   = Diagnostic support not available.

  Model Architecture: chrp

  Model Implementation: Multiple Processor, PCI bus

+ sys0                                               System Object

+ sysplanar0                                         System Planar

* vio0                                               Virtual I/O Bus

* vsa0             U9133.55A.064E69H-V1-C0           LPAR Virtual Serial Adapter

* vty0             U9133.55A.064E69H-V1-C0-L0        Asynchronous Terminal

* pci2             U787B.001.DNWFY3Z-P1              PCI Bus

* pci7             U787B.001.DNWFY3Z-P1              PCI Bus

+ ent2             U787B.001.DNWFY3Z-P1-T9           2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

+ ent3             U787B.001.DNWFY3Z-P1-T10          2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

* pci8             U787B.001.DNWFY3Z-P1              PCI Bus

+ usbhc0           U787B.001.DNWFY3Z-P1              USB Host Controller (33103500)

+ usbhc1           U787B.001.DNWFY3Z-P1              USB Host Controller (33103500)

+ usbhc2           U787B.001.DNWFY3Z-P1              USB Enhanced Host Controller (3310e000)

* pci9             U787B.001.DNWFY3Z-P1              PCI Bus

* pci10            U787B.001.DNWFY3Z-P1              PCI Bus

* pci1             U787B.001.DNWFY3Z-P1              PCI Bus

* pci3             U787B.001.DNWFY3Z-P1              PCI Bus

+ sisscsia0        U787B.001.DNWFY3Z-P1              PCI-X Dual Channel Ultra320 SCSI Adapter

+ scsi0            U787B.001.DNWFY3Z-P1-T14          PCI-X Dual Channel Ultra320 SCSI Adapter bus

+ rmt0             U787B.001.DNWFY3Z-P1-T14-L0-L0    LVD SCSI 4mm Tape Drive (36000 MB)

+ scsi1            U787B.001.DNWFY3Z-P1-T15          PCI-X Dual Channel Ultra320 SCSI Adapter bus

+ hdisk0           U787B.001.DNWFY3Z-P1-T15-L3-L0    16 Bit LVD SCSI Disk Drive (146800 MB)

+ hdisk1           U787B.001.DNWFY3Z-P1-T15-L5-L0    16 Bit LVD SCSI Disk Drive (146800 MB)

+ ses0             U787B.001.DNWFY3Z-P1-T15-L15-L0   SCSI Enclosure Services Device

* pci5             U787B.001.DNWFY3Z-P1              PCI Bus

+ fcs0             U787B.001.DNWFY3Z-P1-C4-T1        FC Adapter

* fcnet0           U787B.001.DNWFY3Z-P1-C4-T1        Fibre Channel Network Protocol Device

+ fscsi0           U787B.001.DNWFY3Z-P1-C4-T1        FC SCSI I/O Controller Protocol Device

* sfwcomm0         U787B.001.DNWFY3Z-P1-C4-T1-W0-L0  Fibre Channel Storage Framework Comm

* pci4             U787B.001.DNWFY3Z-P1              PCI Bus

* ide0             U787B.001.DNWFY3Z-P1-T16          ATA/IDE Controller Device

+ cd0              U787B.001.DNWFY3Z-P4-D2           IDE DVD-ROM Drive

* pci6             U787B.001.DNWFY3Z-P1              PCI Bus

* pci0             U787B.001.DNWFY3Z-P1              PCI Bus

+ ent0             U787B.001.DNWFY3Z-P1-C3-T1        2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

+ ent1             U787B.001.DNWFY3Z-P1-C3-T2        2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

+ L2cache0                                           L2 Cache

+ mem0                                               Memory

+ proc0                                              Processor

lscfg  -vpl  裝置名                                                //顯示該裝置的詳細資訊,在機器上面那個位置,SN号等。先執行lscfg列出裝置名,然後執行加參數加裝置名檢視詳細資訊

9.lsattr                                                                 //顯示關于給定裝置或裝置類型的屬性資訊,使用lsattr是必須要帶參數的。

 -D,顯示裝置的預設值,從預定義裝置資料庫中讀取一個具體類型裝置的預設值

 -E,顯示一個具體裝置的目前有效值,從使用者定義裝置資料庫中讀取具體裝置的有效值,隻能和-l name 參數同時使用。

 -F,使用使用者自定義格式顯示

 -R,顯示某一具體屬性的有效值範圍

 lsattr  -El  mem0                                                  //顯示記憶體大小,這個可以lsdev結合使用,利用lsdev列出裝置名

 [P55A#/]lsattr  -El  mem0                                    //列出該裝置的目前屬性值

ent_mem_cap          I/O memory entitlement in Kbytes           False    

goodsize       11840 Amount of usable physical memory in Mbytes False

mem_exp_factor       Memory expansion factor                    False

size           11840 Total amount of physical memory in Mbytes  False

var_mem_weight       Variable memory capacity weight            False

lsattr  -Dl  裝置名                                                  //列出某樣裝置的預設屬性

lsattr  -Dl  rmt0                                                     //列出錄音帶機的預設屬性       lsattr -Dl  name |  lsattr -El name  這兩個可以作比較一個為預設屬性值,一個列出目前使用屬性值

[P55A#/]lsattr  -Dl  rmt0

block_size        BLOCK size (0=variable length)       True

compress      yes Use data COMPRESSION                 True

density_set_1     DENSITY setting #1                   True

density_set_2     DENSITY setting #2                   True

extfm         yes Use EXTENDED file marks              True

mode          yes Use DEVICE BUFFERS during writes     True

ret           yes RETENSION on tape change or reset    True

ret_error     no  RETURN error on tape change or reset True

size_in_mb    0   Size in Megabytes                    False

繼續閱讀