IPMI & IPMItool Cheatsheet

IPMI & IPMItool Cheatsheet

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.

Out-of-band is also referred to as LOM (Lights-out management) involves the use of a dedicated management channel for device maintenance.

There are number of options available to manage the device remotely. There are vendor specific server management technologies available. HP’s Integrated Lights-out or iLO, Dell’s Dell Remote Access Controller or DRAC and IBM’s Remote supervisor adapter (RSA) are a few to list.

The above listed modules are vendor specific and proprietary. IPMI whereas is vendor-neutral and cross-platform. It is available on Linux distros.

The functionality of IPMI can be accessed via IPMItool. IPMItool is a simple command line utility which is used to manage IPMI-enabled devices. IPMItool enables you to manage system hardware components, monitor system health, and monitor and manage the system environment, independent of the operating system.

IPMI & IPMItool Cheatsheet – Installation

You can install IPMI and IPMItool via yum using the following command:

[[email protected] ~]# yum install OpenIPMI OpenIPMI-tools

Make sure that the server is set to start during startup and start the IPMI service.

[[email protected] ~]# chkconfig ipmi on
[[email protected] ~]# service ipmi start

IPMI & IPMItool Cheatsheet

We have here some IPMItool commands which can be used in day-to-day operations.

# Man and help info for IPMItool

ipmitool help
man ipmitool

# To check firmware version

ipmitool mc info

# To reset the management controller

ipmitool mc reset [ warm | cold ]

# Show field-replaceable-unit details

ipmitool fru print

# Show sensor output

ipmitool sdr list
ipmitool sdr type list
ipmitool sdr type Temperature
ipmitool sdr type Fan
ipmitool sdr type ‘Power Supply’

# Chassis commands

ipmitool chassis status
ipmitool chassis identify [] # turn on front panel identify light (default 15s)
ipmitool [chassis] power soft # initiate a soft-shutdown via acpi
ipmitool [chassis] power cycle # issue a hard power off, wait 1s, power on
ipmitool [chassis] power off # issue a hard power off
ipmitool [chassis] power on # issue a hard power on
ipmitool [chassis] power reset # issue a hard reset

# Modify boot device for next reboot

ipmitool chassis bootdev pxe
ipmitool chassis bootdev cdrom
ipmitool chassis bootdev bios

# Logging

ipmitool sel info
ipmitool sel list
ipmitool sel elist # extended list (see manpage)
ipmitool sel clear

For remote access, you need to setup user and network settings, either at boot time on the iLO or DRAC card itself, or from the OS via ipmitool:

# Display/reset password for default root user (userid ’2′)

ipmitool user list 1
ipmitool user set password 2

# Display/configure lan settings

ipmitool lan print 1
ipmitool lan set 1 ipsrc [ static | dhcp ]
ipmitool lan set 1 ipaddr 10.0.1.251
ipmitool lan set 1 netmask 255.255.255.0
ipmitool lan set 1 defgw ipaddr 10.0.1.1

After configuring the lan settings you should be able to connect remotely using the ‘lan’ interface of IPMItool.

The following is an example:

[[email protected] ~]# ipmitool -I lan -U root -H 10.0.1.251 chassis status

It will prompt for the IPMI root password.

All the above mentioned commands for IPMItool can be used remotely using the ‘lan’ interface as well.

IPMI & IPMItool Cheatsheet

No Comments

Post a Comment

Time limit is exhausted. Please reload CAPTCHA.