ipmitool工具常用命令汇总

上传人:nu****n 文档编号:99241437 上传时间:2022-05-31 格式:DOC 页数:19 大小:115.42KB
收藏 版权申诉 举报 下载
ipmitool工具常用命令汇总_第1页
第1页 / 共19页
ipmitool工具常用命令汇总_第2页
第2页 / 共19页
ipmitool工具常用命令汇总_第3页
第3页 / 共19页
资源描述:

《ipmitool工具常用命令汇总》由会员分享,可在线阅读,更多相关《ipmitool工具常用命令汇总(19页珍藏版)》请在装配图网上搜索。

1、ipmitool工具常用命令汇总目录1.工具的安装32.命令的help33.查看管理口的IP地址54.管理底盘chassis配置64.1查看底盘配置汇总64.2管理电源64.3管理时间间隔74.4管理电源恢复策略74.5查看上次重启原因74.6查询上电时间84.7管理启动项84.8设置启动项的参数85.使用delloem进行管理95.1配置lcd95.2查看MAC地址105.3设置lan的模式115.4设置背板led的状态115.5管理电源监控126.查看传感器数据sensor126.1查看当前系统所有的传感器数据136.2设置传感器的告警阈值136.3查看某一传感器的状态信息136.4查看某

2、一个传感器的当前值147.管理传感器仓库sdr147.1查看传感器仓库中的信息列表157.2查看传感器的类型和指定类型的数据167.3查看指定传感器的配置信息177.4查看传感器仓库sdr的配置信息178.查看系统事件sel日志188.1查看sel的状态信息188.2查看sel的中的日志信息181.工具的安装yum install -y OpenIPMI ipmitool开启服务/etc/init.d/ipmi status/etc/init.d/ipmi startrootcell83 # ipmitool -Vipmitool version 1.8.182.命令的help明细的命令参考m

3、an ipmitool或者附件ipmitool.helprootcell83 # ipmitool -hipmitool version 1.8.18usage: ipmitool options. -h This help -V Show version information -v Verbose (can use multiple times) -c Display output in comma separated format -d N Specify a /dev/ipmiN device to use (default=0) -I intf Interface to use -H

4、 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 file for remote SDR cache -D tty:b:s Specify the serial device, bau

5、d 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 Cipher suite to be used by lanplus interface -k key Use Kg key fo

6、r 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 lookup in RAKP1 -A authtype Force use of auth type NONE, PASSWORD, MD2, MD5 or OEM -P password Remote session pas

7、sword -E Read password from IPMI_PASSWORD environment variable -K Read kgkey from IPMI_KGKEY environment variable -m address Set local IPMB address -b channel Set destination channel for bridged request -t address Bridge request to remote target address -B channel Set transit channel for bridged req

8、uest (dual bridge) -T address Set transit address for bridge request (dual bridge) -l lun Set destination lun for raw commands -o oemtype Setup for OEM (use list to see available OEM types) -O seloem Use file for OEM SEL event descriptions -N seconds Specify timeout for lan default=2 / lanplus defau

9、lt=1 interface -R retry Set the number of retries for lan/lanplus interface default=4Interfaces:open Linux OpenIPMI Interface defaultimb 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 Interface

10、, Basic Mode usb IPMI USB Interface(OEM Interface for AMI Devices) Commands:raw Send a RAW IPMI request and print responsei2c Send an I2C Master Write-Read command and print responsespd Print SPD info from remote I2C devicelan Configure LAN Channelschassis Get chassis status and set power statepower

11、 Shortcut to chassis power commandsevent Send pre-defined events to MCmc Management Controller status and global enablessdr Print Sensor Data Repository entries and readingssensor Print detailed sensor informationfru Print built-in FRU and scan SDR for FRU locatorsgendev Read/Write Device associated

12、 with Generic Device locators sdrsel Print System Event Log (SEL)pef Configure Platform Event Filtering (PEF)sol Configure and connect IPMIv2.0 Serial-over-LANtsol Configure and connect with Tyan IPMIv1.5 Serial-over-LANisol Configure IPMIv1.5 Serial-over-LANuser Configure Management Controller user

13、schannel Configure Management Controller channelssession Print session informationdcmi Data Center Management Interfacenm Node Manager Interfacesunoem OEM Commands for Sun serverskontronoem OEM Commands for Kontron devicespicmg Run a PICMG/ATCA extended cmdfwum Update IPMC using Kontron OEM Firmware

14、 Update Managerfirewall Configure Firmware Firewalldelloem OEM Commands for Dell systemsshell Launch interactive IPMI shellexec Run list of commands from fileset Set runtime variable for shell and exechpm Update HPM components using PICMG HPM.1 fileekanalyzer run FRU-Ekeying analyzer using FRU files

15、ime Update Intel Manageability Engine Firmwarevita Run a VITA 46.11 extended cmdlan6 Configure IPv6 LAN Channels3.查看管理口的IP地址rootcell83 # ipmitool -I open lan printrootcell83 # ipmitool -I open lan print | grep IPIP Address Source : Static AddressIP Address : 192.168.0.133IP Header : TTL=0x40 Flags=0

16、x40 Precedence=0x00 TOS=0x10Default Gateway IP : 192.168.0.1Backup Gateway IP : 0.0.0.04.管理底盘chassis配置rootcell83 # ipmitool -I open chassis helpChassis Commands: status, power, identify, policy, restart_cause, poh, bootdev, bootparam, selftest4.1查看底盘配置汇总 rootcell83 # ipmitool -I open chassis statusS

17、ystem Power : onPower Overload : falsePower Interlock : inactiveMain Power Fault : falsePower Control Fault : falsePower Restore Policy : previousLast Power Event : Chassis Intrusion : inactiveFront-Panel Lockout : inactiveDrive Fault : falseCooling/Fan Fault : falseSleep Button Disable : not allowe

18、dDiag Button Disable : allowedReset Button Disable : not allowedPower Button Disable : allowedSleep Button Disabled: falseDiag Button Disabled : trueReset Button Disabled: falsePower Button Disabled: false4.2管理电源查看当前电源状态rootcell83 # ipmitool -I open chassis power statusChassis Power is on打开电源ipmitoo

19、l -I open chassis power on关闭电源ipmitool -I open chassis power off重启电源ipmitool -I open chassis power cycle重置电源ipmitool -I open chassis power reset其他配置ipmitool -I open chassis power diagipmitool -I open chassis power soft4.3管理时间间隔查询时间间隔:rootcell83 # ipmitool -I open chassis identifyChassis identify int

20、erval: default (15 seconds)设置时间间隔:rootcell83 # ipmitool -I open chassis identify helpchassis identify default is 15 seconds 0 to turn off force to turn on indefinitely 4.4管理电源恢复策略rootcell83 # ipmitool -I open chassis policy helpchassis policy list : return supported policies always-on : turn on when

21、 power is restored previous : return to previous state when power is restored always-off : stay off after power is restored 4.5查看上次重启原因 rootcell83 # ipmitool -I open chassis restart_causeSystem restart cause: unknown 4.6查询上电时间 rootcell83 # ipmitool -I open chassis pohGet Chassis Power-On-Hours faile

22、d: Invalid command 4.7管理启动项rootcell83 # ipmitool -I open chassis bootdev helpbootdev clear-cmos=yes|nobootdev options=help,. none : 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

23、 boot from Diagnostic Partition cdrom : Force boot from CD/DVD bios : Force boot into BIOS Setup floppy: Force boot from Floppy/primary removable media 4.8设置启动项的参数rootcell83 # ipmitool -I open chassis bootparam helpbootparam get bootparam set bootflag options=. Legal devices are: none : No override

24、force_pxe : Force PXE boot force_disk : 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

25、 this message PEF : Clear valid 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 pu

26、sh button or wake event Any Option may be prepended with no- to invert sense of operation5.使用delloem进行管理查看帮助rootcell83 # ipmitool -I open delloem helpusage: delloem mands: lcd mac lan setled powermonitor vFlashFor help on individual commands type:delloem help5.1配置lcdrootcell83 # ipmitool -I open del

27、loem lcd helpGeneric DELL HW: lcd set none|default|custom Set LCD text displayed during non-fault conditionsiDRAC 11g or iDRAC 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| systemn

28、ame|servicetag|ipv6address|ambienttemp systemwatt |assettag|userdefined Allows 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 Al

29、lows you to set the error display. lcd info Show LCD text that is displayed during non-fault conditions lcd set vkvmactive|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|disab

30、led Set LCD mode to view and modify, view only or disabled lcd status Show LCD Status for vKVM display and Front Panel access mode viewandmodify|viewonly|disabled5.2查看MAC地址rootcell83 # ipmitool -I open delloem mac help mac list Lists the MAC address of LOMs mac get Shows the MAC address of specified

31、 LOM. 0-7 System LOM, 8- DRAC/iDRAC. rootcell83 # ipmitool -I open delloem mac listSystem LOMsNIC NumberMAC AddressStatus0b8:2a:72:db:56:2aEnabled1b8:2a:72:db:56:2bEnabled2b8:2a:72:db:56:28Enabled3b8:2a:72:db:56:29EnablediDRAC7 MAC Address b0:83:fe:c9:6d:315.3设置lan的模式rootcell83 # ipmitool -I open de

32、lloem lan help lan set sets the NIC Selection Mode : on iDRAC12g OR iDRAC13g : dedicated, shared with 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 loms, shared

33、 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 lom3, shared with lom4,shared with failover lom1,

34、 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, shared with Failover all loms. lan get active returns the current active NIC (dedicated, LOM1, LO

35、M2, LOM3, LOM4).5.4设置背板led的状态rootcell83 # ipmitool -I open delloem setled help setled Set backplane LED state b:d.f = PCI Bus:Device.Function of drive (lspci format) state = present|online|hotspare|identify|rebuilding| fault|predict|critical|failed 5.5管理电源监控rootcell83 # ipmitool -I open delloem powe

36、rmonitor help powermonitor Shows power tracking statistics powermonitor clear cumulativepower Reset cumulative power reading powermonitor clear peakpower Reset peak power reading powermonitor powerconsumption Displays power consumption in powermonitor powerconsumptionhistory Displays power consumpti

37、on history powermonitor getpowerbudget Displays power cap in powermonitor setpowerbudget Allows user to set the power cap in powermonitor enablepowercap To enable set power cap powermonitor disablepowercap To disable set power cap 6.查看传感器数据sensorrootcell83 # ipmitool -I open sensor helpSensor Comman

38、ds: list thresh get reading6.1查看当前系统所有的传感器数据rootcell83 # ipmitool -I open sensor list6.2设置传感器的告警阈值rootcell83 # ipmitool -I open sensor thresh helpsensor thresh id : name of the sensor for which threshold is to be set threshold : which threshold to set unr = upper non-recoverable ucr = upper critical

39、 unc = upper non-critical lnc = lower non-critical lcr = lower critical lnr = lower non-recoverable setting : the value to set the threshold tosensor thresh lower Set all lower thresholds at the same timesensor thresh upper Set all upper thresholds at the same time 6.3查看某一传感器的状态信息 rootcell83 # ipmit

40、ool -I open sensor get helpsensor get . id id : name of desired sensor 查看温度传感器 rootcell83 # ipmitool -I open sensor get TempLocating sensor record.Sensor ID : Temp (0xe) Entity ID : 3.1 Sensor Type (Threshold) : Temperature Sensor Reading : 48 (+/- 1) degrees C Status : ok Lower Non-Recoverable : na

41、 Lower Critical : 3.000 Lower Non-Critical : 8.000 Upper Non-Critical : 79.000 Upper Critical : 84.000 Upper Non-Recoverable : na Positive Hysteresis : 1.000 Negative Hysteresis : 1.000 Assertion Events : Assertions Enabled : 6.4查看某一个传感器的当前值 rootcell83 # ipmitool -I open sensor reading helpsensor re

42、ading . id id : name of desired sensor 查看温度传感器 rootcell83 # ipmitool -I open sensor reading TempTemp | 47 7.管理传感器仓库sdrrootcell83 # ipmitool -I open sdr helpusage: sdr options list | elist option all All SDR Records full Full Sensor Record compact Compact Sensor Record event Event-Only Sensor Record

43、mcloc Management Controller Locator Record fru FRU Locator Record generic Generic Device Locator Record type option Retrieve the state of specified sensor. Sensor_Type can be specified either as a string or a hex value. list Get a list of available sensor types get Retrieve state of the first sensor

44、 matched by Sensor_ID info Display information about the repository itself entity . Display all sensors associated with an entity dump Dump raw SDR data to a file fill sensors Creates the SDR repository for the current configuration nosat Creates the SDR repository for the current configuration, wit

45、hout satellite scan file Load SDR repository from a file range Load SDR repository from a provided list or range. Use , for list or - for range, eg. 0x28,0x32,0x40-0x447.1查看传感器仓库中的信息列表rootcell83 # ipmitool -I open sdr elist helpusage: sdr elist all|full|compact|event|mcloc|fru|generic=查看仓库中所有的信息:eli

46、st和list的格式内容上略有不同rootcell83 # ipmitool -I open sdr elist allrootcell83 # ipmitool -I open sdr list all=查看传感器的数据rootcell83 # ipmitool -I open sdr elist full Fan1 RPM | 30h | ok | 7.1 | 6240 RPMFan2 RPM | 31h | ok | 7.1 | 6240 RPMFan3 RPM | 32h | ok | 7.1 | 6240 RPMFan4 RPM | 33h | ok | 7.1 | 6120 RPM

47、Fan5 RPM | 34h | ok | 7.1 | 6240 RPMFan6 RPM | 35h | ok | 7.1 | 6240 RPMInlet Temp | 04h | ok | 7.1 | 35 degrees CExhaust Temp | 01h | ok | 7.1 | 40 degrees CTemp | 0Eh | ok | 3.1 | 47 degrees CTemp | 0Fh | ok | 3.2 | 46 degrees CCurrent 1 | 6Ah | ok | 10.1 | 0.80 AmpsCurrent 2 | 6Bh | ns | 10.2 | N

48、o ReadingVoltage 1 | 6Ch | ok | 10.1 | 236 VoltsVoltage 2 | 6Dh | ns | 10.2 | No ReadingPwr Consumption | 77h | ok | 7.1 | 168 Watts说明:Fan -表示风扇Inlet Temp -进口温度Exhaust Temp -出口温度Temp -CPU的温度Current -电流Voltage -电压Pwr Consumption -功率7.2查看传感器的类型和指定类型的数据查看传感器有哪些类型rootcell83 # ipmitool -I open sdr type l

49、istSensor Types:Temperature (0x01) Voltage (0x02)Current (0x03) Fan (0x04)Physical Security (0x05) Platform Security (0x06)Processor (0x07) Power Supply (0x08)Power Unit (0x09) Cooling Device (0x0a)Other (0x0b) Memory (0x0c)Drive Slot / Bay (0x0d) POST Memory Resize (0x0e)System Firmwares (0x0f) Event Logging Disabled (0x10)Watchdog1 (0x11) System Event (0x12)Critical Interrupt (0x13) Button (0x14)Module / Board (0x15) Microcontroller (0x16)Add-in Card (0x17) Chassis (0x18)Chip Set (0x19) Other FRU (0x1a)Cable / Interconnect (0x1b) Terminator (0x1c)System Boot Initiated (0x1d) Boot Error (0x1

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!