ipmitool commands worth remembering

A short cheat sheet for talking to a server's BMC: sensors, the event log, power control and network settings.

Every server vendor has its own management interface, and all of them still answer plain IPMI. These are the commands I use most.

Local or remote

On the machine itself, ipmitool talks to the BMC through the kernel driver. Over the network, add the connection options:

export IPMI_PASSWORD='...'
ipmitool -I lanplus -H bmc.example.net -U admin -E chassis status

The -E flag reads the password from the IPMI_PASSWORD variable, which keeps it out of the process list and the shell history.

Sensors

ipmitool sdr elist                 # every sensor with its state
ipmitool sdr type Temperature      # only temperatures
ipmitool sdr type Fan              # only fans
ipmitool sensor get "CPU1 Temp"    # one sensor with its thresholds

System event log

The SEL is where the BMC records ECC errors, power supply failures and chassis intrusion. Read it before opening a hardware ticket.

ipmitool sel info      # how full the log is
ipmitool sel elist     # entries with decoded sensor names

Power

ipmitool chassis power status
ipmitool chassis power cycle     # hard off, then on
ipmitool chassis power soft      # ACPI shutdown request
ipmitool chassis bootdev pxe     # boot from network once

BMC itself

ipmitool mc info          # firmware version
ipmitool lan print 1      # IP, netmask, gateway, MAC
ipmitool mc reset cold    # restart a hung BMC, the host keeps running