OpenIPMI Things
When you forget or don’t have any other means to access the server, IPMI is the way to go.
Installing
Supermicro Tool
https://supermicro.com/wdl/utility/IPMICFG
DNF
Installing
1
dnf install -y OpenIPMI ipmitool
To enable and run
1
2
/sbin/chkconfig ipmi on
service ipmi start
Configuring
1) Make sure to run as root or sudo 2) Run these commands to enable the drivers
1
2
3
/sbin/modprobe ipmi_msghandler
/sbin/modprobe ipmi_si
/sbin/modprobe ipmi_devintf
3) Optional, run /sbin/lsmod | grep ipmi
to confirm that the IPMI modules have been loaded.
4) To make sure the modules are loaded on system reboot, edit /etc/rc.local
and enter in the following:
1
2
3
/sbin/modprobe ipmi_msghandler
/sbin/modprobe ipmi_si
/sbin/modprobe ipmi_devintf
5) Make sure that the Linux machine sees the IPMI device ls -l /dev/ipmi0
.
If an output is returned, great. If not, than the udevd
daemon isn’t setup to create device files automatically and you must manually create the device.
1) Determine what the device major number is for the IPMI device grep ipmi /proc/devices
.
2) The output will be similar to 253 ipmidev
. The device’s major number is 253.
3) Run mknod /dev/ipmi0 c 253 0x0
to create an entry for the device using the major number. This major number can change per system.
Commands
Device Management
Rebooting the IPMI
Resets the management console without rebooting the BMC
1
ipmitool mc reset warm
Reboots the BMC
1
ipmitool mc reset cold
Cold reset with Supermicro’s Tool
1
ipmicfg -m reset
Reseting the BMC
Factory reset without messing with the networking. This will wipe out any settings on the web interface.
1
ipmicfg -fg
or
1
ipmitool raw 0x3c 0x40
Reset everything
1
ipmicfg -fde
Network Information
To view the network information assigned to the IPMI device
1
ipmitool lan print 1
Configuring the BMC Lan Setting
Dedicated Lan
1
ipmitool raw 0x30 0x70 0xc 1 1 0
Onboard LAN1
1
ipmitool raw 0x30 0x70 0xc 1 1 1
Check failover (default setting)
1
ipmitool raw 0x30 0x70 0xc 1 0 0
User Management
Current Users
To view the preconfigured users
1
ipmitool user list 1
Reset User Password
The number is in relation to the number they are assigned. This can be found in the user list command.
1
ipmitool user set password # new_password