以dell的R620型號的服務器作的測試html
登錄上dell服務器ilo的IP地址,首先打開ipmi,ilo2是直接支持ipmi2.0的服務器
此框須要點擊 「IDRAC設置」->「網絡」->「IPMI設置」在」啓用LAN上IPMI「後的複選框打鉤,才能啓動ipmi網絡
好像是內置到了ilo2,應該是,這個不是太肯定,可是我能肯定的是,ipmitool獲取數據的時候直接可使用ilo的帳戶密碼ssh
[root@manrhca script]# ipmitool -I lan -H 192.168.232.200 -U root -P calvin sdr SEL | Not Readable | ns Intrusion | 0x00 | ok Fan1A RPM | 2160 RPM | ok Fan2A RPM | 2160 RPM | ok Fan3A RPM | 2160 RPM | ok Fan4A RPM | 2160 RPM | ok Fan5A RPM | 2160 RPM | ok Fan6A RPM | 2280 RPM | ok Inlet Temp | 21 degrees C | ok Exhaust Temp | 33 degrees C | ok Temp | 47 degrees C | ok Temp | 42 degrees C | ok OS Watchdog | 0x00 | ok VCORE PG | 0x01 | ok VCORE PG | 0x01 | ok 3.3V PG | 0x01 | ok 5V PG | 0x01 | ok USB Cable Pres | 0x01 | ok VGA Cable Pres | 0x01 | ok Dedicated NIC | 0x01 | ok Presence | 0x01 | ok Presence | 0x01 | ok Presence | 0x01 | ok PLL PG | 0x01 | ok PLL PG | 0x01 | ok 1.1V PG | 0x01 | ok M23 VDDQ PG | 0x01 | ok M23 VTT PG | 0x01 | ok FETDRV PG | 0x01 | ok Presence | 0x01 | ok VSA PG | 0x01 | ok VSA PG | 0x01 | ok M01 VDDQ PG | 0x01 | ok M01 VDDQ PG | 0x01 | ok M23 VTT PG | 0x01 | ok M01 VTT PG | 0x01 | ok NDC PG | 0x01 | ok LCD Cable Pres | 0x01 | ok VTT PG | 0x01 | ok VTT PG | 0x01 | ok M23 VDDQ PG | 0x01 | ok Presence | 0x01 | ok Presence | 0x02 | ok Status | 0x80 | ok Status | 0x80 | ok Fan Redundancy | 0x01 | ok Riser Config Err | 0x00 | ok Riser 3 Presence | 0x01 | ok 1.5V PG | 0x01 | ok PS2 PG Fail | Not Readable | ns PS1 PG Fail | 0x01 | ok BP1 5V PG | 0x01 | ok BP2 5V PG | Not Readable | ns M01 VTT PG | 0x01 | ok Presence | 0x01 | ok PCIe Slot1 | 0x00 | ok PCIe Slot2 | Not Readable | ns PCIe Slot3 | Not Readable | ns PCIe Slot4 | Not Readable | ns PCIe Slot5 | Not Readable | ns PCIe Slot6 | Not Readable | ns PCIe Slot7 | Not Readable | ns vFlash | 0x00 | ok CMOS Battery | 0x00 | ok ROMB Battery | 0x00 | ok ROMB Battery | Not Readable | ns Presence | 0x01 | ok Presence | 0x02 | ok Current 1 | 0.40 Amps | ok Current 2 | disabled | ns Voltage 1 | 218 Volts | ok Voltage 2 | disabled | ns PS Redundancy | Not Readable | ns Status | 0x01 | ok Status | 0x09 | ok Pwr Consumption | 84 Watts | ok Power Optimized | 0x01 | ok SD1 | Not Readable | ns SD2 | Not Readable | ns Redundancy | Not Readable | ns ECC Corr Err | Not Readable | ns ECC Uncorr Err | Not Readable | ns I/O Channel Chk | Not Readable | ns PCI Parity Err | Not Readable | ns PCI System Err | Not Readable | ns SBE Log Disabled | Not Readable | ns Logging Disabled | Not Readable | ns Unknown | Not Readable | ns CPU Protocol Err | Not Readable | ns CPU Bus PERR | Not Readable | ns CPU Init Err | Not Readable | ns CPU Machine Chk | Not Readable | ns Memory Spared | Not Readable | ns Memory Mirrored | Not Readable | ns Memory RAID | Not Readable | ns Memory Added | Not Readable | ns Memory Removed | Not Readable | ns Memory Cfg Err | Not Readable | ns Mem Redun Gain | Not Readable | ns PCIE Fatal Err | Not Readable | ns Chipset Err | Not Readable | ns Err Reg Pointer | Not Readable | ns Mem ECC Warning | Not Readable | ns Mem CRC Err | Not Readable | ns USB Over-current | Not Readable | ns POST Err | Not Readable | ns Hdwr version err | Not Readable | ns Mem Overtemp | Not Readable | ns Mem Fatal SB CRC | Not Readable | ns Mem Fatal NB CRC | Not Readable | ns OS Watchdog Time | Not Readable | ns Non Fatal PCI Er | Not Readable | ns Fatal IO Error | Not Readable | ns MSR Info Log | Not Readable | ns TXT Status | Not Readable | ns Drive 0 | 0x01 | ok Cable SAS A | 0x01 | ok Cable SAS B | 0x01 | ok Cable SAS C | Not Readable | ns Cable SAS D | Not Readable | ns Cable SAS A | Not Readable | ns Cable SAS B | Not Readable | ns Cable SAS C | Not Readable | ns Cable SAS D | Not Readable | ns Power Cable | 0x01 | ok Signal Cable | 0x01 | ok Power Cable | Not Readable | ns Signal Cable | Not Readable | ns Fan7A RPM | 2040 RPM | ok Fan1B RPM | 2160 RPM | ok Fan2B RPM | 2280 RPM | ok Fan3B RPM | 2160 RPM | ok Fan4B RPM | 2040 RPM | ok Fan5B RPM | 2160 RPM | ok Fan6B RPM | 2160 RPM | ok Fan7B RPM | 2160 RPM | ok PFault Fail Safe | Not Readable | ns A | 0x40 | ok B | 0x40 | ok
獲取了好多的數據,可是這獲取的是傳感器能獲取到的內容ide
CPU 我大概須要的是「temp」這是倆CPU的溫度和狀態,這裏的標示ID就是TEMP,盯了一會ILO的CPU溫度變化和ipmitool獲取溫度的變化,我確認它是CPU測試
fan[0-9][A-B] RPM 這顯示的是風扇,有A和B,其實機箱中你會發現沒那麼多風扇,可是仔細看一下風扇,是正反兩個扇葉,因此你懂得了ui
Power Cable 顯示電源電纜的狀態,R620是雙電的,如今是一個電源沒插,因此一個顯示OK一個ns(not specified:未定義的,我想大概是這個意思)spa
這裏我只須要這三個值,固然不會就會取這三個值,接下來的其它硬件信息我用ipmi倒騰了兩天也沒倒騰出來,應該就是不支持,網上找了些文檔,跑的dell官網找到了一個文檔《RACADM Command Line Reference Guide for iDRAC7 1.00.00 and CMC 4.0》 racadm命令行參考指南命令行
根據指南說明我能夠ssh直接鏈接ilo,就是文檔名後面的iDRAC7,文檔越看越驚喜code
經過指南的幫助我獲取了更多更詳細的信息,
咱們直接鏈接ilo的ip
使用的就是登錄ilo的帳戶和密碼 廠商默認帳戶root密碼是calvin
#獲取網卡信息,只顯示了當前ilo網卡,沒有顯示更多的使用中的網卡
racadm getniccfg
#內存 風扇 CPU詳細信息,這個至關好
racadm getsensorinfo 登錄後執行一下,是否是信息很強勁 DIMM solt是指內存,很詳細顯示插了幾條內存 還有風扇轉速 cpu溫度狀態等與上面有些重複
[root@manrhca script]# ssh 192.168.232.200 root@192.168.232.200's password: /admin1-> racadm getsensorinfo Sensor Type : POWER <Sensor Name> <Status> <Type> PS1 Status Present AC PS2 Status AC-Lost-Out-Range AC Sensor Type : TEMPERATURE <Sensor Name> <Status> <Reading> <lc> <uc> System Board Inlet Temp Ok 22 C -7 C 47 C System Board Exhaust Temp Ok 33 C 3 C 75 C CPU1 Temp Ok 47 C 3 C 91 C CPU2 Temp Ok 42 C 3 C 91 C Sensor Type : FAN <Sensor Name> <Status> <Reading> <lc> <uc> System Board Fan1A RPM Ok 2280 RPM 720 RPM NA System Board Fan2A RPM Ok 2280 RPM 720 RPM NA System Board Fan3A RPM Ok 2280 RPM 720 RPM NA System Board Fan4A RPM Ok 2160 RPM 720 RPM NA System Board Fan5A RPM Ok 2160 RPM 720 RPM NA System Board Fan6A RPM Ok 2280 RPM 720 RPM NA System Board Fan7A RPM Ok 2280 RPM 720 RPM NA System Board Fan1B RPM Ok 2280 RPM 720 RPM NA System Board Fan2B RPM Ok 2400 RPM 720 RPM NA System Board Fan3B RPM Ok 2280 RPM 720 RPM NA System Board Fan4B RPM Ok 2160 RPM 720 RPM NA System Board Fan5B RPM Ok 2160 RPM 720 RPM NA System Board Fan6B RPM Ok 2160 RPM 720 RPM NA System Board Fan7B RPM Ok 2160 RPM 720 RPM NA Sensor Type : VOLTAGE <Sensor Name> <Status> <Reading> <lc> <uc> CPU1 VCORE PG Ok Good NA NA CPU2 VCORE PG Ok Good NA NA System Board 3.3V PG Ok Good NA NA System Board 5V PG Ok Good NA NA CPU2 PLL PG Ok Good NA NA CPU1 PLL PG Ok Good NA NA System Board 1.1V PG Ok Good NA NA CPU1 M23 VDDQ PG Ok Good NA NA CPU1 M23 VTT PG Ok Good NA NA System Board FETDRV PG Ok Good NA NA CPU2 VSA PG Ok Good NA NA CPU1 VSA PG Ok Good NA NA CPU2 M01 VDDQ PG Ok Good NA NA CPU1 M01 VDDQ PG Ok Good NA NA CPU2 M23 VTT PG Ok Good NA NA CPU2 M01 VTT PG Ok Good NA NA System Board NDC PG Ok Good NA NA CPU2 VTT PG Ok Good NA NA CPU1 VTT PG Ok Good NA NA CPU2 M23 VDDQ PG Ok Good NA NA System Board 1.5V PG Ok Good NA NA System Board PS1 PG Fail Ok Good NA NA System Board BP1 5V PG Ok Good NA NA CPU1 M01 VTT PG Ok Good NA NA PS1 Voltage 1 Ok 216 V NA NA Sensor Type : CURRENT <Sensor Name> <Status> <Reading> <lc> <uc> PS1 Current 1 Ok 0.4 Amps NA NA System Board Pwr Consumption Ok 84 Watts NA 644 Watts Sensor Type : PROCESSOR <Sensor Name> <Status> <State> <lc> <uc> CPU1 Status Ok Presence Detected NA NA CPU2 Status Ok Presence Detected NA NA Sensor Type : MEMORY <Sensor Name> <Status> <State> <lc> <uc> DIMM SLOT A1 Ok Presence Detected NA NA DIMM SLOT A2 Ok Presence Detected NA NA DIMM SLOT A3 Ok Presence Detected NA NA DIMM SLOT A4 Ok Presence Detected NA NA DIMM SLOT A5 N/A Absent NA NA DIMM SLOT A6 N/A Absent NA NA DIMM SLOT A7 N/A Absent NA NA DIMM SLOT A8 N/A Absent NA NA DIMM SLOT A9 N/A Absent NA NA DIMM SLOT A10 N/A Absent NA NA DIMM SLOT A11 N/A Absent NA NA DIMM SLOT A12 N/A Absent NA NA DIMM SLOT B1 Ok Presence Detected NA NA DIMM SLOT B2 Ok Presence Detected NA NA DIMM SLOT B3 Ok Presence Detected NA NA DIMM SLOT B4 Ok Presence Detected NA NA DIMM SLOT B5 N/A Absent NA NA DIMM SLOT B6 N/A Absent NA NA DIMM SLOT B7 N/A Absent NA NA DIMM SLOT B8 N/A Absent NA NA DIMM SLOT B9 N/A Absent NA NA DIMM SLOT B10 N/A Absent NA NA DIMM SLOT B11 N/A Absent NA NA DIMM SLOT B12 N/A Absent NA NA Sensor Type : BATTERY <Sensor Name> <Status> <Reading> <lc> <uc> System Board CMOS Battery Ok Present NA NA Sensor Type : PERFOMANCE <Sensor Name> <Status> <State> <lc> <uc> System Board Power Optimized Ok Not Degraded NA NA Sensor Type : INTRUSION <Sensor Name> <Intrusion> <Status> System Board Intrusion Closed Power ON Sensor Type : REDUNDANCY <Sensor Name> <Status> <Type> System Board Fan Redundancy Full Redundant Fan System Board PS Redundancy Disabled PSU
#全部聯機的磁盤
racadm raid get pdisks 看一眼如今的磁盤 羅列出了全部磁盤,可是沒狀態什麼
#raid 卡詳細信息
racadm raid get controllers -o 這裏看,能看到raid詳細信息 rollupstatus裝填盤陣有問題這裏就應該報錯了,這個沒證明,文檔上大概意思是這樣的
#列出全部網卡
racadm nicstatistics 這是網卡名字,這個名字用下面命令獲取詳細信息NIC.Integrated.1-1-1名字後面顯示了網卡牌子
#網卡狀態
racadm nicstatistics [nicname] 上面的取到的名字,咱們經過這條命令獲取網卡詳細信息
這裏的link status顯示的是網卡是否啓用,目前我所須要的就這麼多,網上搜了好多,沒找到方法,本身研究了一下,共享一下,忽噴,您若是有更好的方法能夠共享一下
PS:ssh用戶扔線上確定不會讓你使用root帳戶,因此這個我開了一個帳戶權限給了只讀和系統控制,給完權限後要記得啓用帳戶,一個很2的錯,浪費了我好長時間
很2的錯誤