天天看點

AIX 7.1檢視硬體配置資訊 檢視端口IBM POWER 750 P750

大家好,又見面了,我是你們的朋友全棧君。

檢視CPU 型号

host01:/home/oracle$lsattr -El proc0
frequency   3500000000     Processor Speed       False
smt_enabled true           Processor SMT enabled False
smt_threads 4              Processor SMT threads False
state       enable         Processor state       False
type        PowerPC_POWER7 Processor type        False
host01:/home/oracle$           

複制

從這裡可以看出,CPU 型号是 PowerPC_POWER7;

檢視cpu個數

#lsdev -Cc processor | grep proc | wc -l
      32
  
  安裝了32個cpu           

複制

檢視cpu 核心數及頻率

host01:/home/oracle$pmcycles -m
CPU 0 runs at 3500 MHz
CPU 1 runs at 3500 MHz
CPU 2 runs at 3500 MHz
CPU 3 runs at 3500 MHz
CPU 4 runs at 3500 MHz
CPU 5 runs at 3500 MHz
CPU 6 runs at 3500 MHz
CPU 7 runs at 3500 MHz
CPU 8 runs at 3500 MHz
CPU 9 runs at 3500 MHz
CPU 10 runs at 3500 MHz
CPU 11 runs at 3500 MHz
CPU 12 runs at 3500 MHz
CPU 13 runs at 3500 MHz
CPU 14 runs at 3500 MHz
CPU 15 runs at 3500 MHz
CPU 16 runs at 3500 MHz
CPU 17 runs at 3500 MHz
CPU 18 runs at 3500 MHz
CPU 19 runs at 3500 MHz
CPU 20 runs at 3500 MHz
CPU 21 runs at 3500 MHz
CPU 22 runs at 3500 MHz
CPU 23 runs at 3500 MHz
CPU 24 runs at 3500 MHz
CPU 25 runs at 3500 MHz
CPU 26 runs at 3500 MHz
CPU 27 runs at 3500 MHz
CPU 28 runs at 3500 MHz
CPU 29 runs at 3500 MHz
CPU 30 runs at 3500 MHz
CPU 31 runs at 3500 MHz
CPU 32 runs at 3500 MHz
CPU 33 runs at 3500 MHz
CPU 34 runs at 3500 MHz
CPU 35 runs at 3500 MHz
CPU 36 runs at 3500 MHz
CPU 37 runs at 3500 MHz
CPU 38 runs at 3500 MHz
CPU 39 runs at 3500 MHz
CPU 40 runs at 3500 MHz
CPU 41 runs at 3500 MHz
CPU 42 runs at 3500 MHz
CPU 43 runs at 3500 MHz
CPU 44 runs at 3500 MHz
CPU 45 runs at 3500 MHz
CPU 46 runs at 3500 MHz
CPU 47 runs at 3500 MHz
CPU 48 runs at 3500 MHz
CPU 49 runs at 3500 MHz
CPU 50 runs at 3500 MHz
CPU 51 runs at 3500 MHz
CPU 52 runs at 3500 MHz
CPU 53 runs at 3500 MHz
CPU 54 runs at 3500 MHz
CPU 55 runs at 3500 MHz
CPU 56 runs at 3500 MHz
CPU 57 runs at 3500 MHz
CPU 58 runs at 3500 MHz
CPU 59 runs at 3500 MHz
CPU 60 runs at 3500 MHz
CPU 61 runs at 3500 MHz
CPU 62 runs at 3500 MHz
CPU 63 runs at 3500 MHz
CPU 64 runs at 3500 MHz
CPU 65 runs at 3500 MHz
CPU 66 runs at 3500 MHz
CPU 67 runs at 3500 MHz
CPU 68 runs at 3500 MHz
CPU 69 runs at 3500 MHz
CPU 70 runs at 3500 MHz
CPU 71 runs at 3500 MHz
CPU 72 runs at 3500 MHz
CPU 73 runs at 3500 MHz
CPU 74 runs at 3500 MHz
CPU 75 runs at 3500 MHz
CPU 76 runs at 3500 MHz
CPU 77 runs at 3500 MHz
CPU 78 runs at 3500 MHz
CPU 79 runs at 3500 MHz
CPU 80 runs at 3500 MHz
CPU 81 runs at 3500 MHz
CPU 82 runs at 3500 MHz
CPU 83 runs at 3500 MHz
CPU 84 runs at 3500 MHz
CPU 85 runs at 3500 MHz
CPU 86 runs at 3500 MHz
CPU 87 runs at 3500 MHz
CPU 88 runs at 3500 MHz
CPU 89 runs at 3500 MHz
CPU 90 runs at 3500 MHz
CPU 91 runs at 3500 MHz
CPU 92 runs at 3500 MHz
CPU 93 runs at 3500 MHz
CPU 94 runs at 3500 MHz
CPU 95 runs at 3500 MHz
host01:/home/oracle$           

複制

這裡我們可以看出,共有96顆 cpu 核心,頻率是3.5GHz;

檢視機器型号

host01:/home/oracle$uname -M
IBM,8408-E**
host01:/home/oracle$           

複制

檢視aix 完整版本号

#oslevel -s
7100-03-05-1524           

複制

檢視記憶體大小

host01:/home/oracle$lsattr -El mem0
ent_mem_cap           I/O memory entitlement in Kbytes           False
goodsize       126976 Amount of usable physical memory in Mbytes False
mem_exp_factor        Memory expansion factor                    False
size           126976 Total amount of physical memory in Mbytes  False
var_mem_weight        Variable memory capacity weight            False
host01:/home/oracle$           

複制

記憶體顯示為126976MB,126976/1024=124GB ,記憶體為124GB

檢視記憶體使用率

svmon           

複制

memory 那一行,inuse / size *100% 即為記憶體使用率。

topas 這個指令也能看記憶體使用情況,包括交換空間           

複制

記憶體使用率排序

ps vx | sort -n +6           

複制

該指令最好使用root 執行,非root 使用者看不到其他使用者的程序。

ps vx 輸出詳細資訊,包括記憶體使用情況;sort -n 對數值進行排序,+6 是跳過前6列,對第7列的數字進行排序;// 注意:如果對非數字進行排序,将造成不可預知的後果。

檢視硬碟

host01:/home/oracle$lspv
hdisk0          00fa0759b43cfc42                    rootvg          active      
hdisk1          00fa0758b18584c0                    rootvg          active      
hdisk2          00fa0758b56b7e9d                    oravg           active      
hdisk3          00fa0758b5667009                    oravg           active      
hdisk4          00fa0758b5667f15                    None                        
hdisk5          00fa0758b5668a78                    None                        
hdisk6          none                                None                        
hdisk7          none                                None  
......
hdiskpower21    00fa0758d3eaf907                    datavg          active      
hdiskpower22    00fa0758d3e7ff51                    datavg          active      
hdisk166        none                                None                                   

複制

從輸出可以看出,有6個active ,共有6塊盤。

檢視存儲空間使用情況

檢視目前目錄下,存儲空間使用量
host1:/grid/base$du -ms *  (注:-m 代表輸出的結果機關是MB)
0.01    Clusterware
0.41    cfgtoollogs  (大小為0.41 MB)
0.00    checkpoints
412.92  diag   
0.47    oradiag_root
0.00    mach1           

複制

host1:/grid/base$du -ks *  (注:-k 代表輸出的結果機關是KB)
8       Clusterware
416     cfgtoollogs   (大小為416 KB)
0       checkpoints
425720  diag
480     oradiag_root
4       mach1           

複制

du -ms 後面除了接 * 外,還可以接 檔案夾名稱:

host1:/grid/base$du -ms diag
417.25  diag           

複制

檢視端口号

舉例:檢視513端口是否起來

netstat -an | grep 513           

複制

官方資料

https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/p_commands/pmcycles.html

釋出者:全棧程式員棧長,轉載請注明出處:https://javaforall.cn/149223.html原文連結:https://javaforall.cn