1、ipmitool工具常用命令汇总情况ipmitool工具常用命令汇总yum install -y OpenIPMI ipmitool开启服务rootcell83 # ipmitool -V明细的命令参考man ipmitool或者附件rootcell83 # ipmitool -husage: ipmitool options. -h This help -V Show version information -v Verbose (can use multiple times) -c Display output in ma separated format -d N Specify a /
2、dev/ipmiN device to use (default=0) -I intf Interface to 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 munication Channel (OEM) -S sdr Use local file fo
3、r remote SDR cache -D tty:b:s Specify the serial 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 Ciphe
4、r 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 lookup in RAKP1 -A authtype Force use of auth type NO
5、NE, 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 channel Set destination channel for bridged request -t address Bridge request to remote t
6、arget 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 mands -o oemtype Setup for OEM (use list to see available OEM types) -O seloem Use file for OEM SEL event descriptions -N
7、seconds Specify timeout for lan default=2 / lanplus default=1 interface -R retry Set the number of retries for lan/lanplus interface default=4Interfaces: open Linux OpenIPMI Interface default imb Intel IMB Interface lan IPMI v1.5 LAN Interface lanplus IPMI v2.0 RMCP+ LAN Interface serial-terminal Se
8、rial Interface, Terminal Mode serial-basic Serial Interface, Basic Mode usb IPMI USB Interface(OEM Interface for AMI Devices) mands: raw Send a RAW IPMI request and print response i2c Send an I2C Master Write-Read mand and print response spd Print SPD info from remote I2C device lan Configure LAN Ch
9、annels chassis Get chassis status and set power state power Shortcut to chassis power mands event Send pre-defined events to MC mc Management Controller status and global enables sdr Print Sensor Data Repository entries and readings sensor Print detailed sensor information fru Print built-in FRU and
10、 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-LAN tsol Configure and connect with Tyan IPMIv1.5 Serial-over-LAN isol Configur
11、e 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 Manager Interface sunoem OEM mands for Sun servers kontronoem OEM mands for Kontron devices picmg Run
12、 a PICMG/ATCA extended cmd fwum Update IPMC using Kontron OEM Firmware Update Manager firewall Configure Firmware Firewall delloem OEM mands for Dell systems shell Launch interactive IPMI shell exec Run list of mands from file set Set runtime variable for shell and exec hpm Update HPM ponents using
13、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 Configure IPv6 LAN Channelsrootcell83 # ipmitool -I open lan printrootcell83 # ipmitool -I open lan print | grep IPIP Address Source : Static Ad
14、dressIP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10rootcell83 # ipmitool -I open chassis helpChassis mands: status, power, identify, policy, restart_cause, poh, bootdev, bootparam, selftest rootcell83 # ipmitool -I open chassis statusSystem Power : onPower Overload : falsePower Interlock :
15、 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 allowedDiag Button Disable : allowedReset Button Disable : no
16、t allowedPower Button Disable : allowedSleep Button Disabled: falseDiag Button Disabled : trueReset Button Disabled: falsePower Button Disabled: false查看当前电源状态rootcell83 # ipmitool -I open chassis power statusChassis Power is on打开电源ipmitool -I open chassis power on关闭电源ipmitool -I open chassis power o
17、ff重启电源ipmitool -I open chassis power cycle重置电源ipmitool -I open chassis power reset其他配置ipmitool -I open chassis power diagipmitool -I open chassis power soft查询时间间隔:rootcell83 # ipmitool -I open chassis identifyChassis identify interval: default (15 seconds)设置时间间隔:rootcell83 # ipmitool -I open chassis
18、 identify helpchassis identify default is 15 seconds 0 to turn off force to turn on indefinitelyrootcell83 # ipmitool -I open chassis policy helpchassis policy list : return supported policies always-on : turn on when power is restored previous : return to previous state when power is restored alway
19、s-off : stay off after power is restored rootcell83 # ipmitool -I open chassis restart_causeSystem restart cause: unknown rootcell83 # ipmitool -I open chassis pohGet Chassis Power-On-Hours failed: Invalid mandrootcell83 # ipmitool -I open chassis bootdev helpbootdev clear-cmos=yes|nobootdev options
20、=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 boot from Diagnostic Partition cdrom : Force boot from CD/DVD bios : Force boot into BIOS Setup floppy: Force boot f
21、rom Floppy/primary removable mediarootcell83 # ipmitool -I open chassis bootparam helpbootparam get bootparam set bootflag options=. Legal devices are: none : No override force_pxe : Force PXE boot force_disk : Force boot from default Hard-drive force_safe : Force boot from default Hard-drive, reque
22、st 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 valid bit on reset/power cycle cause by PEF timeout : Automatically clear boot flag valid bit on timeou
23、t 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 event Any Option may be prepended with no- to invert sense of operation查看帮助rootcell83 # ipmitool -I open delloe
24、m helpusage: delloem option.mands: lcd mac lan setled powermonitor vFlashFor help on individual mands type:delloem helprootcell83 # ipmitool -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 : lc
25、d 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 Allows you to set the LCD display mode to any of the preceding parameters lc
26、d 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. lcd info Show LCD text that is displayed during non-fault conditions lcd set vkvmactive|inactive Set vKVM active
27、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 LCD mode to view and modify, view only or disabled lcd status Show LCD Status for vKVM display and Front Panel access mode viewandmodify|vie
28、wonly|disabledrootcell83 # ipmitool -I open delloem mac help mac list Lists the MAC address of LOMs mac get Shows the MAC address of specified LOM. 0-7 System LOM, 8- DRAC/iDRAC.rootcell83 # ipmitool -I open delloem mac listSystem LOMsNIC Number MAC Address Status0 b8:2a:72:db:56:2a Enabled1 b8:2a:7
29、2:db:56:2b Enabled2 b8:2a:72:db:56:28 Enabled3 b8:2a:72:db:56:29 EnablediDRAC7 MAC Address b0:83:fe:c9:6d:31rootcell83 # ipmitool -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,s
30、hared 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, 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, shared
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1