ipmitool工具常用命令匯總



《ipmitool工具常用命令匯總》由會員分享,可在線閱讀,更多相關(guān)《ipmitool工具常用命令匯總(33頁珍藏版)》請在裝配圖網(wǎng)上搜索。
1、 ipmitool 工具常用命令匯總 目錄 1. 工具的安裝 .............................................................................................................................................. 3 2. 命令的 help ..............................................................................
2、.............................................................. 3 3. 查看管理口的 IP 地址 ......................................................................................................................... 5 4. 管理底盤 chassis 配置 ..................................................................
3、..................................................... 6 4.1 查看底盤配置匯總 ........................................................................................................................ 6 4.2 管理電源 ........................................................................................
4、.................................................. 6 4.3 管理時間間隔 ................................................................................................................................. 7 4.4 管理電源恢復(fù)策略 ...............................................................................
5、......................................... 7 4.5 查看上次重啟原因 ........................................................................................................................ 7 4.6 查詢上電時間 .................................................................................................
6、................................ 8 4.7 管理啟動項 ..................................................................................................................................... 8 4.8 設(shè)置啟動項的參數(shù) ..............................................................................................
7、.......................... 8 5. 使用 delloem 進(jìn)行管理 ....................................................................................................................... 9 5.1 配置 lcd ..............................................................................................................
8、............................. 9 5.2 查看 MAC地址 ............................................................................................................................... 10 5.3 設(shè)置 lan 的模式 ..................................................................................................
9、........................ 11 5.4 設(shè)置背板 led 的狀態(tài) ................................................................................................................. 11 5.5 管理電源監(jiān)控 ..................................................................................................................
10、............. 12 6. 查看傳感器數(shù)據(jù) sensor ................................................................................................................... 12 6.1 查看當(dāng)前系統(tǒng)所有的傳感器數(shù)據(jù) .......................................................................................... 13 6.2 設(shè)置傳感器的告警閾值
11、............................................................................................................. 13 6.3 查看某一傳感器的狀態(tài)信息 ................................................................................................... 13 6.4 查看某一個傳感器的當(dāng)前值 ....................................
12、............................................................... 14 7. 管理傳感器倉庫 sdr .......................................................................................................................... 14 7.1 查看傳感器倉庫中的信息列表 ...............................................................
13、................................ 15 7.2 查看傳感器的類型和指定類型的數(shù)據(jù)................................................................................. 16 7.3 查看指定傳感器的配置信息 ................................................................................................... 17 7.4 查看傳感器倉庫 sdr 的配置信息
14、 .......................................................................................... 18 8. 查看系統(tǒng)事件 sel 日志 .....................................................................................................................18 8.1 查看 sel 的狀態(tài)信息 18 8.2 查看 sel 的中的日志信息 19
15、 1. 工具的安裝 yum install -y OpenIPMI ipmitool 開啟服務(wù) /etc/init.d/ipmi status /etc/init.d/ipmi start [root@cell83 ~]# ipmitool -V ipmitool version 1.8.18 2. 命令的 help 明細(xì)的命令參考 man ipmitool 或者附件 ipmitool.help [root@cell83
16、~]# ipmitool -h
ipmitool version 1.8.18
usage: ipmitool [options...]
17、 use -H hostname Remote host name for LAN interface -p port Remote RMCP port [default=623] -U username Remote session username -f file Read remote session password from file -z size Change Size of Communication Channel (OEM) -S sdr Use local remote SDR cache -D tty:b[:s] Specify the se
18、rial device, baud rate to use and, optionally, specify that interface is the system one -4 Use only IPv4 -6 Use only IPv6 -a Prompt for remote password -Y Prompt for the Kg key for IPMIv2 authentication -e char Set SOL escape character -C ciphersuite Ci
19、pher suite to be used by lanplus interface -k key Use Kg key for IPMIv2 authentication -y hex_key Use hexadecimal-encoded Kg key for IPMIv2 authentication -L level Remote session privilege level [default=ADMINISTRATOR] Append a + to use name/privilege look
20、up in RAKP1 -A authtype Force use of auth type NONE, PASSWORD, MD2, MD5 or OEM -P password Remote session password -E Read password from IPMI_PASSWORD environment variable -K Read kgkey from IPMI_KGKEY environment variable -m address Set local IPMB address -b
21、 channel Set destination channel for bridged request -t address Bridge request to remote target address -B channel Set transit channel for bridged request (dual bridge) -T address Set transit address for bridge request (dual bridge) -l lun Set destination lun for raw com
22、mands -o oemtype Setup for OEM (use list to see available OEM types) -O seloem Use OEM SEL event descriptions -N seconds Specify timeout for lan [default=2] / lanplus [default=1] interface -R retry Set the number of retries for lan/lanplus interface
23、 [default=4] Interfaces: open Linux OpenIPMI Interface [default] imb Intel IMB Interface lan IPMI v1.5 LAN Interface lanplus IPMI v2.0 RMCP+ LAN Interface serial-terminal Serial Interface, Terminal Mode serial-basic Serial Int
24、erface, Basic Mode usb IPMI USB Interface(OEM Interface for AMI Devices) Commands: raw Send a RAW IPMI request and print response i2c Send an I2C Master Write-Read command and print response spd Print SPD info from remote I2C device lan Configure LA
25、N Channels chassis Get chassis status and set power state power Shortcut to chassis power commands event Send pre-defined events to MC mc Management Controller status and global enables sdr Print Sensor Data Repository entries and readings sensor
26、 Print detailed sensor information fru Print built-in FRU and scan SDR for FRU locators gendev Read/Write Device associated with Generic Device locators sdr sel Print System Event Log (SEL) pef Configure Platform Event Filtering (PEF) sol Configure and connect IPMIv2.0 Serial-over-L
27、AN tsol Configure and connect with Tyan IPMIv1.5 Serial-over-LAN isol Configure IPMIv1.5 Serial-over-LAN user Configure Management Controller users channel Configure Management Controller channels session Print session information dcmi Data Center Management Interface nm Node Manag
28、er Interface sunoem OEM Commands for Sun servers kontronoem OEM Commands for Kontron devices picmg Run a PICMG/ATCA extended cmd fwum Update IPMC using Kontron OEM Firmware Update Manager firewall Configure Firmware Firewall delloem OEM Commands for Dell systems shell Launch intera
29、ctive IPMI shell exec Run list of commands from file set Set runtime variable for shell and exec hpm Update HPM components using PICMG HPM.1 file ekanalyzer run FRU-Ekeying analyzer using FRU files ime Update Intel Manageability Engine Firmware vita Run a VITA 46.11 extended cmd lan6 C
30、onfigure IPv6 LAN Channels 3. 查看管理口的 IP 地址 [root@cell83 ~]# ipmitool -I open lan print [root@cell83 ~]# ipmitool -I open lan print | grep IP IP Address Source : Static Address IP Address : 192.168.0.133 IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS
31、=0x10 Default Gateway IP : 192.168.0.1 Backup Gateway IP : 0.0.0.0 4. 管理底盤 chassis 配置 [root@cell83 ~]# ipmitool -I open chassis help Chassis Commands: status, power, identify, policy, restart_cause, poh, bootdev, bootparam, selftest
32、 4.1 查看底盤配置匯總 [root@cell83 ~]# ipmitool -I open chassis status System Power : on Power Overload : false Power Interlock : inactive Main Power Fault : false Power Control Fault : false Last Power Event : Chassis Intrusion : inactive Front-Panel Lockout : inacti
33、ve Drive Fault : false Cooling/Fan Fault : false Sleep Button Disable : not allowed Diag Button Disable : allowed Reset Button Disable : not allowed Power Button Disable : allowed Sleep Button Disabled: false Diag Button Disabled : true Reset Button Disabled: false Powe
34、r Button Disabled: false 4.2 管理電源 查看當(dāng)前電源狀態(tài) [root@cell83 ~]# ipmitool -I open chassis power status Chassis Power is on 打開電源 ipmitool -I open chassis power on 關(guān)閉電源 ipmitool -I open chassis power off 重啟電源 ipmitool -I open chassis power c
35、ycle 重置電源 ipmitool -I open chassis power reset 其他配置 ipmitool -I open chassis power diag ipmitool -I open chassis power soft 4.3 管理時間間隔 查詢時間間隔: [root@cell83 ~]# ipmitool -I open chassis identify Chassis identify interval: default (15 seconds) 設(shè)置
36、時間間隔:
[root@cell83 ~]# ipmitool -I open chassis identify help
chassis identify
37、 supported policies always-on : turn on when power is restored previous : return to previous state when power is restored always-off : stay off after power is restored 4.5 查看上次重啟原因 [root@cell83 ~]# ipmitool -I open chassis restart_cause System restart cause: unknown
38、
4.6 查詢上電時間
[root@cell83 ~]# ipmitool -I open chassis poh
Get Chassis Power-On-Hours failed: Invalid command
4.7 管理啟動項
[root@cell83 ~]# ipmitool -I open chassis bootdev help
bootdev
39、e : Do not change boot device order pxe : Force PXE boot disk : Force boot from default Hard-drive safe : Force boot from default Hard-drive, request Safe Mode diag : Force boot from Diagnostic Partition cdrom : Force boot from CD/DVD bios : Force boot into BIOS Setup floppy: Fo
40、rce boot from Floppy/primary removable media
4.8 設(shè)置啟動項的參數(shù)
[root@cell83 ~]# ipmitool -I open chassis bootparam help
bootparam get
bootparam set bootflag
41、Force boot from default Hard-drive force_safe : Force boot from default Hard-drive, request Safe Mode force_diag : Force boot from Diagnostic Partition force_cdrom : Force boot from CD/DVD force_bios : Force boot into BIOS Setup Legal options are: help : print this message PEF : Clear va
42、lid bit on reset/power cycle cause by PEF timeout : Automatically clear boot flag valid bit on timeout watchdog: Clear valid bit on reset/power cycle cause by watchdog reset : Clear valid bit on push button reset/soft reset power : Clear valid bit on power up via power push button or wake even
43、t
Any Option may be prepended with no- to invert sense of operation
5. 使用 delloem 進(jìn)行管理
查看幫助
[root@cell83 ~]# ipmitool -I open delloem help
usage: delloem
44、
For help on individual commands type:
delloem
45、 12g or iDRAC 13g :
lcd set {mode}|{lcdqualifier}|{errordisplay}
Allows you to set the LCD mode and user-defined string.
lcd set mode {none}|{modelname}|{ipv4address}|{macaddress}| {systemname}|{servicetag}|{ipv6address}|{ambienttemp} {systemwatt }|{assettag}|{userdefined}
46、ws you to set the LCD display mode to any of the preceding parameters lcd set lcdqualifier {watt}|{btuphr}|{celsius}|{fahrenheit} Allows you to set the unit for the system ambient temperature mode. lcd set errordisplay {sel}|{simple} Allows you to set the error display. lc
47、d info Show LCD text that is displayed during non-fault conditions lcd set vkvm{active}|{inactive} Set vKVM active and inactive, message will be displayed on lcd when vKVM is active and vKVM session is in progress lcd set frontpanelaccess {viewandmodify}|{viewonly}|{disabled} Set
48、 LCD mode to view and modify, view only or disabled
lcd status
Show LCD Status for vKVM display
49、 MAC address of LOMs
mac get
50、
2
b8:2a:72:db:56:28
Enabled
3
b8:2a:72:db:56:29
Enabled
iDRAC7 MAC Address b0:83:fe:c9:6d:31
5.3 設(shè)置 lan 的模式
[root@cell83 ~]# ipmitool -I open delloem lan help
lan set
51、th lom1, shared with lom2,shared with lom3,shared with lom4,shared with failover lom1,shared with failover lom2,shared with failover lom3,shared with failover lom4,shared with Failover all
52、loms, shared with Failover None). on other systems : dedicated, shared, shared with failover lom2, shared with Failover all loms. lan get on iDRAC12g or iDRAC13g : returns the current NIC Selection Mode (dedicated, shared with lom1, shared with lom2, shared with
53、 lom3, shared with lom4,shared with failover lom1, shared with failover lom2,shared with failover lom3,shared with failover lom4,shared with Failover all loms,shared with Failover None). on other systems : dedicated, shared, shared with failover, lom2, sha
54、red with Failover all loms.
lan get active
returns the current active NIC (dedicated, LOM1, LOM2, LOM3, LOM4).
5.4 設(shè)置背板 led 的狀態(tài)
[root@cell83 ~]# ipmitool -I open delloem setled help
setled
55、nction of drive (lspci format) state = present|online|hotspare|identify|rebuilding| fault|predict|critical|failed 5.5 管理電源監(jiān)控 [root@cell83 ~]# ipmitool -I open delloem powermonitor help powermonitor Shows power tracking statistics powermonitor clear
56、cumulativepower
Reset cumulative power reading
powermonitor clear peakpower
Reset peak power reading
powermonitor powerconsumption
Displays power consumption in
57、
powermonitor getpowerbudget
Displays power cap in
58、et power cap 6. 查看傳感器數(shù)據(jù) sensor [root@cell83 ~]# ipmitool -I open sensor help Sensor Commands: list thresh get reading 6.1 查看當(dāng)前系統(tǒng)所有的傳感器數(shù)據(jù) [root@cell83 ~]# ipmitool -I open sensor list 6.2 設(shè)置傳感器的告警閾值 [root@cell83 ~]# ipmitool
59、-I open sensor thresh help
sensor thresh
60、cal
lnr = lower non-recoverable
setting : the value to set the threshold to
sensor thresh
61、息
[root@cell83 ~]# ipmitool -I open sensor get help
sensor get
62、 Sensor Reading : 48 (+/- 1) degrees C Status : ok Lower Non-Recoverable : na Lower Critical : 3.000 Lower Non-Critical : 8.000 Upper Non-Critical : 79.000 Upper Critical : 84.000 Positive Hysteresis : 1.000 Negative Hysteresis : 1.000 Assertion Events : As
63、sertions Enabled :
6.4 查看某一個傳感器的當(dāng)前值
[root@cell83 ~]# ipmitool -I open sensor reading help
sensor reading
64、
[root@cell83 ~]# ipmitool -I open sdr help
usage: sdr
65、eneric Generic Device Locator Record
type [option]
66、nsor matched by Sensor_ID
info
Display information about the repository itself
entity
- 溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年高考政治一輪復(fù)習(xí):統(tǒng)編版選擇性必修1-3【共3冊重點(diǎn)知識點(diǎn)匯總】
- 2025年高考政治一輪復(fù)習(xí):七冊教材重點(diǎn)考點(diǎn)匯總
- 2025年高考生物一輪復(fù)習(xí):高中生物必修+選必修5冊教材重點(diǎn)知識點(diǎn)匯總
- 2025政府工作報告要點(diǎn)速覽發(fā)展總體要求和政策取向
- 《哪吒2》與DEEPSEEK年輕力量的崛起助力中國突破重圍
- 建設(shè)金融強(qiáng)國做好金融五篇大文章的指導(dǎo)意見
- 落實高質(zhì)量發(fā)展要求如期完成既定目標(biāo)任務(wù)更新理念科學(xué)統(tǒng)籌切實增強(qiáng)規(guī)劃執(zhí)行的系統(tǒng)性整體性協(xié)同性
- 如何成為一名暖護(hù)暖護(hù)的概念與職責(zé)
- 藥品儲存與養(yǎng)護(hù)醫(yī)療護(hù)理藥品儲存藥品養(yǎng)護(hù)藥品常識
- 手術(shù)室職業(yè)暴露與防護(hù)診療護(hù)理等過程中被患者血液體液等污染自身皮膚或黏膜導(dǎo)致的感染
- XX企業(yè)中層管理者領(lǐng)導(dǎo)力提升培訓(xùn)課程
- 醫(yī)院新員工入職培訓(xùn)醫(yī)院新員工必備主要職業(yè)意識醫(yī)院新員工必備工作觀
- 人工智能技術(shù)介紹人工智能DeepSeek人工智能的未來展望與發(fā)展
- 養(yǎng)娃要有松弛感家庭教育讓孩子在具有松弛感的家庭里慢慢成長
- 醫(yī)院新員工入職培訓(xùn)醫(yī)院新員工必備主要職業(yè)意識