How to install and use IPMItool


IPMItool is an application that allows you to configure IPMI, iDRAC or iLO (any version) from a server's Operating System or any LiveCD. This may be useful when you are locked out of your remote management without the need to reboot the server.

You can install IPMItool with RPM, DPKG or PKG(FreeBSD) in the following way:

[ yum | apt-get | pkg ] install ipmitool

Next load the ipmi module:

modprobe ipmi_devintf
modprobe ipmi_si
kldload ipmi (FreeBSD)

You can also download an OS-independent IPMItool version here: (chmod +x to make executable)

Below are some common commands that explain how to reset a password, configure the network and more.
Keep in mind the examples below use random numbers for the IPMI LAN channel, these can differ per case.

# Display/configure lan settings
ipmitool lan print 1
ipmitool lan set 1 ipsrc [ static | dhcp ]
ipmitool lan set 1 ipaddr xx.xx.xx.xx
ipmitool lan set 1 netmask xx.xx.xx.xx
ipmitool lan set 1 defgw ipaddr xx.xx.xx.xx
# Reset IPMI Management Controller
ipmitool mc reset [ warm | cold ]

Be sure to always reset the Management Controller after (re-)configuring the network settings.

# Modify boot device for next reboot
ipmitool chassis bootdev pxe
ipmitool chassis bootdev cdrom
ipmitool chassis bootdev bios
# Logging (System Event Log)
ipmitool sel info
ipmitool sel list
ipmitool sel elist # extended list (see manpage)
ipmitool sel clear
# Display/reset password for default root user (userid ’2')
ipmitool user list 1
ipmitool user set password 2
ipmitool user enable 2
# Add or remove a vlan ID (advanced option):
ipmitool lan set 0 vlan id [ off | id ]
# Show sensor output:
ipmitool sdr list
ipmitool sdr type list
ipmitool sdr type Temperature
ipmitool sdr type Fan
ipmitool sdr type 'Power Supply'

The IPMItool's man page can provide a more extensive list of commands and advanced features:

No Comments
Back to top