Home » Centos/RHEL » Install and configure IPMI on Linux

Install and configure IPMI on Linux

The IPMI (Intelligent Platform Management Interface) provides management and monitoring capabilities independently of the host system’s operating system, firmware, BIOS and CPU. IPMI provides an easy way to manage a server/computer that may be unresponsive or powered off by using a network connection to hardware. This tutorial will guide you that how to install and configure IPMI on Linux

The Installation of IPMI is pretty simple:

[root@linuxpcfix ~]# yum install OpenIPMI OpenIPMI-tools
[root@linuxpcfix ~]# chkconfig ipmi on
[root@linuxpcfix ~]# service ipmi start

Once the IPMI is installed then from a local system/machine you can use ipmitool to access and manage all kinds of useful stuff:

IPMI commands:

[root@linuxpcfix~]# ipmitool help
[root@linuxpcfix~]# man ipmitool

To check firmware version:

[root@linuxpcfix~]# ipmitool mc info

To reset management controller:

[root@linuxpcfix~]# ipmitool mc reset [ warm | cold ]

To check field-replaceable-unit details:

[root@linuxpcfix~]# ipmitool fru print

To check Sensor output:

[root@linuxpcfix~]# ipmitool sdr list
[root@linuxpcfix~]# ipmitool sdr type list
[root@linuxpcfix~]# ipmitool sdr type Temperature
[root@linuxpcfix~]# ipmitool sdr type Fan
[root@linuxpcfix~]# ipmitool sdr type ‘Power Supply’

To check Chassis commands:

[root@linuxpcfix~]# ipmitool chassis status
[root@linuxpcfix~]# ipmitool chassis identify []

# turn on front panel identify light (default 15s)

[root@linuxpcfix~]# ipmitool [chassis] power soft

# initiate a soft-shutdown via acpi

[root@linuxpcfix~]# ipmitool [chassis] power cycle

# issue a hard poweroff, wait for 1sec, power on

[root@linuxpcfix~]# ipmitool [chassis] power off

# issue a hard power off

[root@linuxpcfix~]# ipmitool [chassis] power on

# issue a hard power on

[root@linuxpcfix~]# ipmitool [chassis] power reset

# issue a hard reset

To Modify boot device for next reboot:

[root@linuxpcfix~]# ipmitool chassis bootdev pxe
[root@linuxpcfix~]# ipmitool chassis bootdev cdrom
[root@linuxpcfix~]# ipmitool chassis bootdev bios

For Logging:

[root@linuxpcfix~]# ipmitool sel info
[root@linuxpcfix~]# ipmitool sel list
[root@linuxpcfix~]# ipmitool sel elist
[root@linuxpcfix~]# ipmitool sel clear

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

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

[root@linuxpcfix~]# ipmitool user list 1
[root@linuxpcfix~]# ipmitool user set password 2

Display/configure lan settings:

[root@linuxpcfix~]# ipmitool lan print 1
[root@linuxpcfix~]# ipmitool lan set 1 ipsrc [ static | dhcp ]
[root@linuxpcfix~]# ipmitool lan set 1 ipaddr
[root@linuxpcfix~]# ipmitool lan set 1 netmask
[root@linuxpcfix~]# ipmitool lan set 1 defgw ipaddr

Once this is configured you will be able to connect using the ‘lan’ interface to ipmitool, like this:

[root@linuxpcfix~]# ipmitool -I lan -U root -H chassis status

which will prompt you for ipmi root password or you can also do the following:

[root@linuxpcfix~]# echo > ~/.racpasswd
[root@linuxpcfix~]# chmod 600 ~/.racpasswd

and then use that password file instead of manually entering it each time:

[root@linuxpcfix~]# ipmitool -I lan -U root -f ~/.racpasswd -H chassis status

I am using an ‘ipmi’ alias that looks like this:

[root@linuxpcfix~]# alias ipmi=’ipmitool -I lan -U root -f ~/.racpasswd -H’

which allows you to do the much shorter

[root@linuxpcfix~]# ipmi chassis status


[root@linuxpcfix~]# ipmi chassis status

Finally, if you configure serial console redirection in the bios as follows:

Serial Communication -> Serial Communication: On with Console Redirection via COM2
Serial Communication -> External Serial Connector: COM2
Serial Communication -> Redirection After Boot: Disabled

then we can setup standard serial access in “grub.conf” and “inittab” on com2/ttyS1 and get serial console access via IPMI serial-over-lan using the ‘lanplus’ interface:

[root@linuxpcfix~]# ipmitool -I lanplus -U root -f ~/.racpasswd -H sol activate

which we can use via a shell function:

ipmi serial-over-lan functionisol() {
if [ -n “$1” ]; then
ipmitool -I lanplus -U root -f ~/.racpasswd -H $1 sol activate
echo “usage: sol ”

used like:





Leave a Reply

Your email address will not be published. Required fields are marked *


Time limit is exhausted. Please reload the CAPTCHA.

Categorized Tag Cloud