IPMI¶
Overview¶
Install freeipmi (http://www.gnu.org/software/freeipmi/documentation.html) or ipmitool
Check that your system has IPMI
dmidecode | grep IPMI
cat /proc/ipmi/0/stats
ls /dev/ipmi0
If you dont have ipmi0
modprobe ipmi_devintf
Configuration¶
bmc-config --checkout > ipmi.conf
Edit ipmi.conf
cat ipmi.conf | bmc-config --commit
Get sensor data¶
Local
ipmi-sensors
ipmitool sdr list
Remote
ipmi-sensors -h $host -u $user -P
ipmitool sdr list -H $host -U $user -P
More detailed and better parsable data
ipmimonitoring -h $host -u $user -P
Get chassis status¶
ipmi-chassis -h $host -u $user -P -s
Power machine on / off¶
ipmipower --on -h $host -u $user -P
ipmitool power reset -H $host -U $user
Activate chassis LED¶
ipmi-chassis -h $host -u $user -P -i 1
Read system event logs¶
General information
ipmi-sel -h $host -u $user -P -i
ipmitool sel elist
Real logs
ipmi-sel -h $host -u $user -P
Configure network for remote console¶
ipmitool lan set 2 ipaddr $IP
ipmitool lan set 2 netmask 255.255.255.0
ipmitool lan set 2 defgw ipaddr $GW
ipmitool lan print 2
Configure user¶
ipmitool user set name <userid> balle
ipmitool user set password <userid> ""
admin privs
ipmitool channel setaccess 1 <userid> link=on ipmi=on callin=on privilege=4
ipmitool channel setaccess 2 <userid> link=on ipmi=on callin=on privilege=4
user privs
ipmitool channel setaccess 1 <userid> link=on ipmi=on callin=on privilege=2
ipmitool channel setaccess 2 <userid> link=on ipmi=on callin=on privilege=2
dont forget to enable the user
ipmitool user enable <userid>
Get serial console¶
ipmiconsole -h $host -u $user -P
Restart ipmi controller¶
ipmitool bmc reset cold
Check that ipmi controller is ok¶
ipmitool bmc selftest