Tags:
create new tag
view all tags

Some help on IPMI commands

External documentation

Sensor readings

speeding up commands by first recording status to a cache

Commands can take many seconds to run since even for subqueries the full SDR and SEL may be read. One can improve this considerably by first caching the whole SDR, and then having subsequent runs making use of the known structure by suplplying the -S sdr-cache-path option to ipmitool. Note that every invocation using this cache file will still give you the current numbers - the cache is not for the actual values, but for the structure.

ipmitool -I lanplus -H rmwn08 -U root -f /root/private/ipmi-pw sdr dump /root/ipmi-sdr.cache
   Dumping Sensor Data Repository to '/root/ipmi-sdr.cache'

ipmitool -I lanplus -H rmwn08 -U root -f /root/private/ipmi-pw -S /root/ipmi-sdr.cache sdr type temperature

The output of these commands has the following columns

  1. IPMI sensor ID (16-character maximum)
  2. IPMI sensor number
  3. Sensor status, indicating which thresholds have been exceeded
  4. Entity ID and instance
  5. Sensor reading

sensor ID sensor number status Entity ID Sensor reading
MB/T_AMB0 32h ok 7.0 54 degrees C

Show temperature, voltage, and fan sensors

ipmitool -I lanplus -H rmwn01 -U root -f /root/private/ipmi-pw sdr elist full

TODO for DerekFeichtinger (priority 2)
Put temperature sensors into Ganglia. We need to have better monitoring, here

Show all sensors of type temperature

ipmitool -I lanplus -H rmwn01 -U root -f /root/private/ipmi-pw sdr type temperature

Show information on all FRUs (Hardware serial numbers, etc.)

ipmitool -I lanplus -H rmwn01 -U root -f /root/private/ipmi-pw fru

Check/Change Power status

the chassis power accepts the commands status, on, off, cycle, reset, diag, soft

ipmitool -I lanplus -H rmwn03 -U root -f /root/private/ipmi-pw chassis power status

Reset the SP (the ILOM)

This may be particularly useful when the ILOM is so corrupted that it prevents normal login

ipmitool  -H rmfs07 -U root -f /root/private/ipmi-pw mc reset cold

Turn on the locator LED. List LEDs and their values

This sets the locator LED to the FAST (4HZ) blink rate

ipmitool -E -I lan -H rmwn03 -U root -f /root/private/ipmi-pw sunoem led set sys.locate.led FAST LOCATE

One can list all the generic Devices that are controllable LEDs

ipmitool -I lanplus -H rmui01 -U root -f /root/private/ipmi-pw sdr list generic

List the value of the sun blade prepare_to_remove LED (but I found no way yet of setting this via IPMI)

ipmitool -I lanplus -H rmwn10 -U root -f /root/private/ipmi-pw sunoem sbled get OK2RM

Retrieve event logs

Use sel list or sel elist

ipmitool -I lanplus -H rmwn03 -U root -f /root/private/ipmi-pw sel list
ipmitool -I lanplus -H rmwn03 -U root -f /root/private/ipmi-pw sel elist

Misc

Some IPMI readouts I had been asked to run during a problem investigation for SUN:

    # ipmitool -H localhost -U root -P  fru
    # ipmitool -H localhost -U root -P  sdr elist
    # ipmitool -H localhost -U root -P  sel elist
    # ipmitool -H localhost -U root -P  sunoem led get all
    # ipmitool -H localhost -U root -P  sensor list

Setting a node to boot from PXE or to boot into BIOS

ipmitool -I lanplus -H rmfs08 -U root -f /root/private/ipmi-pw chassis bootdev pxe

ipmitool -I lanplus -H rmfs08 -U root -f /root/private/ipmi-pw chassis bootdev bios

Platform Event Filtering (PEF) settings

ipmitool -I lanplus -H rmui01 -U root -f /root/private/ipmi-pw pef list

-- DerekFeichtinger - 03 Feb 2009

Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2012-03-15 - DerekFeichtinger
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback