ipmi

Introduce

The Intelligent Platform Management Interface (IPMI) is a standardized computer
system interface used by system administrators for out-of-band management of
computer systems and monitoring of their operation. It is a way to manage a
computer that may be powered off or otherwise unresponsive by using a network
connection to the hardware rather than to an operating system or login shell.

Why use

Use lm-sensor?

[root@localhost ~]# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:       +27.8°C  (crit = +106.0°C)                  
temp2:       +29.8°C  (crit = +106.0°C)                  

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +35.0°C  (high = +85.0°C, crit = +105.0°C)  
Core 0:        +32.0°C  (high = +85.0°C, crit = +105.0°C)  
Core 1:        +31.0°C  (high = +85.0°C, crit = +105.0°C)  

Use dmidecode?

Install

On Centos 6.5

[root@localhost ~]# yum install OpenIPMI -y
[root@localhost ~]# yum install ipmitool -y
[root@localhost ~]# chkconfig ipmi on
[root@localhost ~]# service ipmi start
Starting ipmi drivers:                                     [  OK  ]
[root@localhost ~]# ls -l /dev/ipmi*
crw-rw----. 1 root root 245, 0 Feb  5 14:18 /dev/ipmi0
[root@localhost ~]# lsmod | grep ipmi
ipmi_devintf            7729  0 
[root@localhost ~]# modinfo ipmi_devintf
filename:       /lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/char/ipmi/ipmi_devintf.ko
alias:          platform:ipmi_si
description:    Linux device interface for the IPMI message handler.
author:         Corey Minyard <minyard@mvista.com>
license:        GPL
srcversion:     592518D3E7F47DFC4EBEC9F
depends:        
vermagic:       2.6.32-431.el6.x86_64 SMP mod_unload modversions 
parm:           ipmi_major:Sets the major number of the IPMI device.  By default, or if you set it to zero, it will choose the next available device.  Setting it to -1 will disable the interface.  Other values will set the major device number to that value. (int)
[root@localhost ~]#

Use

  1. To check firmware version

    [root@localhost ~]# ipmitool mc info
    Device ID                 : 20
    Device Revision           : 1
    Firmware Revision         : 0.8
    IPMI Version              : 2.0
    Manufacturer ID           : 9091
    Manufacturer Name         : Unknown (0x2383)
    Product ID                : 289 (0x0121)
    Product Name              : Unknown (0x121)
    Device Available          : yes
    Provides Device SDRs      : no
    Additional Device Support :
        Sensor Device
        SDR Repository Device
        SEL Device
        FRU Inventory Device
        IPMB Event Receiver
        Chassis Device
    Aux Firmware Rev Info     : 
        0x00
        0x37
        0x00
        0x00
    
  2. Show sensor output

    [root@localhost ~]# ipmitool sdr list
    CPU0_TEMP        | 25 degrees C      | ok
    VCORE_CPU0       | 0.83 Volts        | ok
    +1.5V_DDR3       | 1.52 Volts        | ok
    PCH              | 1.04 Volts        | ok
    +3.3V            | 3.42 Volts        | ok
    +5V              | 5.14 Volts        | ok
    +5VSB            | 5.07 Volts        | ok
    VBAT             | 3.34 Volts        | ok
    +12V_MONITOR     | 12.40 Volts       | ok
    THERMAL01        | 35 degrees C      | ok
    THERMAL02        | 31 degrees C      | ok
    CPU_FAN1         | 5900 RPM          | ok
    SYS_FAN1         | 0 RPM             | nr
    SYS_FAN2         | 0 RPM             | nr
    SYS_FAN3         | 0 RPM             | nr
    Watchdog         | Not Readable      | ns
    [root@localhost ~]# ipmitool sdr type list
    Sensor Types:
        Temperature                 Voltage                  
        Current                     Fan                      
        Physical Security           Platform Security        
        Processor                   Power Supply             
        Power Unit                  Cooling Device           
        Other                       Memory                   
        Drive Slot / Bay            POST Memory Resize       
        System Firmwares            Event Logging Disabled   
        Watchdog                    System Event             
        Critical Interrupt          Button                   
        Module / Board              Microcontroller          
        Add-in Card                 Chassis                  
        Chip Set                    Other FRU                
        Cable / Interconnect        Terminator               
        System Boot Initiated       Boot Error               
        OS Boot                     OS Critical Stop         
        Slot / Connector            System ACPI Power State  
        Watchdog                    Platform Alert           
        Entity Presence             Monitor ASIC             
        LAN                         Management Subsystem Health
        Battery                     Session Audit            
        Version Change              FRU State                
    [root@localhost ~]# ipmitool sdr type Fan
    CPU_FAN1         | 31h | ok  |  7.1 | 5900 RPM
    SYS_FAN1         | 32h | lnr |  7.2 | 0 RPM
    SYS_FAN2         | 33h | lnr |  7.5 | 0 RPM
    SYS_FAN3         | 34h | lnr |  7.6 | 0 RPM
    [root@localhost ~]# ipmitool sdr type Temperature
    CPU0_TEMP        | 21h | ok  |  7.1 | 25 degrees C
    THERMAL01        | 23h | ok  |  7.1 | 35 degrees C
    THERMAL02        | 24h | ok  |  7.1 | 31 degrees C
    
  3. Display/reset password for default root user (userid ‘2’)

    ipmitool user list 1
    ipmitool user set password 2 <new_password>
    

Display/configure lan settings

ipmitool lan print 1
ipmitool lan set 1 ipsrc [ static | dhcp ]
ipmitool lan set 1 ipaddr 192.168.1.101
ipmitool lan set 1 netmask 255.255.255.0
ipmitool lan set 1 defgw ipaddr 192.168.1.254

Reference