IPMI - shawfdong/hyades GitHub Wiki
The Intelligent Platform Management Interface (IPMI) is a set of computer interface specifications for an autonomous computer subsystem that provides management and monitoring capabilities independently of the host system's CPU, firmware (BIOS or UEFI) and operating system. IPMI defines a set of interfaces used by system administrators for out-of-band management of computer systems and monitoring of their operation.
Start the ipmi service:
# service ipmi start
ipmitool is a utility for controlling IPMI-enabled devices:
# man ipmitool # ipmitool help # ipmitool delloem help
Configure LAN interface:
# ipmitool lan set help # ipmitool lan set 1 ipaddr 10.x.x.x # ipmitool lan set 1 defgw ipaddr 0.0.0.0 # ipmitool lan set 1 netmask 255.255.0.0 # ipmitool lan set 1 access on # ipmitool lan set 1 snmp xxxxxxxx
Configure user:
# ipmitool user help # ipmitool user set password 2 xxxxxxxx
Set the LCD mode and user-defined string:
# ipmitool delloem lcd help # ipmitool delloem lcd set mode userdefined $(hostname -s)
Set the NIC selection mode for IPMI:
# ipmitool delloem lan help # ipmitool delloem lan get dedicated
To change the NIC selection mode to shared with lom4 and shared with failover lom3:
# ipmitool delloem lan set shared with lom4 # ipmitool delloem lan set shared with failover lom3 # ipmitool delloem lan get Shared LOM : shared with lom4 Failover LOM : shared with failover lom3
To disable Failover:
# ipmitool delloem lan set shared with failover none
To change the NIC selection mode to dedicated:
# ipmitool delloem lan set dedicated
Note ipmitool raw:
To check if the current DRAC is shared or dedicated.
# ipmitool raw 0x30 0x25A result of 00 means shared and 02 means dedicated.
To change to shared:
# ipmitool raw 0x30 0x24 0
To change to dedicated:
# ipmitool raw 0x30 0x24 2
We don't need the ipmi service running any more. Let's stop it:
# service ipmi stop
Now we can control the system remotely, via the IPMI-over-LAN interface. For example:
# ipmitool -I lanplus -U root -E -H 10.x.x.x power status # ipmitool -I lanplus -U root -E -H 10.x.x.x sel list
On every Dell Remote Access Controller (DRAC), the default ADMINISTRATOR username is root, and its default password is calvin. On every Supermicro Baseboard Management Controller (BMC), the default ADMINISTRATOR username is ADMIN, and its default password is ADMIN.
To change the ADMINISTRATOR password on a Supermicro remotely via the IPMI-over-LAN interface:
# ipmitool -I lanplus -U ADMIN -H 10.x.x.x user list 1 Password: ID Name Callin Link Auth IPMI Msg Channel Priv Limit 2 ADMIN false false true ADMINISTRATOR # ipmitool -I lanplus -U ADMIN -H 10.x.x.x user set password 2 xxxxxxxx # ipmitool -I lanplus -U ADMIN -E -H 10.9.7.1 user list 1 ID Name Callin Link Auth IPMI Msg Channel Priv Limit 2 ADMIN false false true ADMINISTRATOR
Install ipmitool:
# pkg install ipmitool
Load the ipmi kernel module:
# kldload ipmi # kldstat Id Refs Address Size Name 1 25 0xffffffff80200000 179ddb0 kernel 2 1 0xffffffff8199e000 2f9b00 zfs.ko 3 2 0xffffffff81c98000 6048 opensolaris.ko 4 1 0xffffffff81c9f000 30f8 cc_htcp.ko 5 1 0xffffffff81e11000 358e ums.ko 6 1 0xffffffff81e15000 32e6f pf.ko 7 1 0xffffffff81e48000 819d ipmi.ko 8 1 0xffffffff81e51000 ba8 smbus.ko
Configure LAN interface:
# ipmitool lan set 1 ipaddr 10.x.x.x
Unload the ipmi kernel module:
# kldunload ipmi