ipmitool工具常用命令汇总_第1页
ipmitool工具常用命令汇总_第2页
ipmitool工具常用命令汇总_第3页
ipmitool工具常用命令汇总_第4页
ipmitool工具常用命令汇总_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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 : 33IP Header : TTL=0x40 Flags=0

16、x40 Precedence=0x00 TOS=0x10Default Gateway IP : Backup Gateway IP : 4.管理底盘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 -

27、I open delloem 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|macaddres

28、s| systemname|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

29、|simple Allows 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|view

30、only|disabled 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

31、 specified 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

32、-I open delloem 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 lo

33、ms, 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 lom3, shared with lom4,shared with fail

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

35、, LOM1, LOM2, 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 de

36、lloem powermonitor 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

37、 consumption 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 helpSen

38、sor Commands: 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 = uppe

39、r critical 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查看某一传感器的状态信息 rootcell

40、83 # ipmitool -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-Recove

41、rable : na 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 hel

42、psensor reading . 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 Sens

43、or Record 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 fi

44、rst sensor 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 configur

45、ation, without 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=查看仓库中所有的

温馨提示

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

评论

0/150

提交评论