Monitor a Linux box using IPMI

To monitor the hardware of a server (fans/power/chassis) you'll need to install and setup IPMI.

yum install ipmitool
service start ipmi

You should have a /dev/ipmi0 now that acts as the interface to the IPMI board. You can list all the sensors you're able to monitor:

ipmitool sdr

To setup an IP address use the following commands:

ipmitool lan print 1
ipmitool lan set 1 ipaddr 10.3.1.190
ipmitool lan set 1 netmask 255.255.255.0
ipmitool lan set 1 defgw ipaddr 10.3.1.1

Then setup the user to allow a login

ipmitool user set name 3 ipmi
ipmitool user set password 3 password
ipmitool user enable 3
ipmitool user priv 3 4
ipmitool user list

You may have to reset the IPMI board for IP address changes to take effect.

ipmitool mc reset cold
Leave A Reply
All content licensed under the Creative Commons License