Restarting an IBM BMC without restarting the server itself
Solution 1
The simplest way is if you can log onto the server, run as root:
# ipmitool bmc reset cold
Solution 2
If you can't connect to the BMC via web, ssh, IPMI, telnet, or other connection mechanism that you have configured, then the only way to reset the BMC for sure is to power the computer down and then pull the power inputs. Many BMCs (or iLO or eLOM or whatever) don't reset themselves when the computer reboots or powers off.
Solution 3
For anyone with a similar issue, here is the ipmiutil command for issuing a cold reset on the BMC without rebooting the server:
ipmiutil reset -k
I personally use ipmiutil
over ipmitool
when possible as it can run without IPMI drivers installed. I have had several instances where the Linux IPMI modules locked up due an issue with the BMC. This prevented ipmitool from running but I was still able to use ipmiutil in "driverless mode", which it reverts to automatically. The only downside is that, unlike ipmitool, ipmiutil is most likely not already installed. It should be available to install using the yum/apt-get repos included with most distros though.
Related videos on Youtube
SRobertJames
Updated on September 17, 2022Comments
-
SRobertJames almost 2 years
I have a few servers with IBM BMC (Baseboard Management Controller). I'd like to power cycle the BMC without restarting the server. Is this possible? How?
Note: On one of them, the web interface is down; so I'd need to either do this by physically restarting the BMC (not sure how to do this - even the power button on the server isn't supposed to recycle the BMC, I believe) or via the UDP or SNMP interface (again, not sure how to do that either)
-
mfinni over 13 yearsChopper - the BMC isn't always on the SupII (equivalent of the iLO). Sometimes it's integrated into the system. Either way, I think it would take an actual pull of the plug to get it to restart, if you can't get into the SupII.
-
Balázs Pozsár about 11 yearsWhat if it does not help? On my server, it seems to be stuck. For the command "bmc-device --cold-reset" which is essentially the same, I get the error: "ipmi_cmd_cold_reset: bad completion code". It does not reset itself, I cannot access it in any way. Do I have other choice beside powering down completely?
-
Balázs Pozsár about 11 yearsMaybe I was offtopic here, I have an Intel S2600GZ4 with AXXRMM4. It does not have a reset button afaik. It is really a shame these kind of problems exist that they need a powerdown sometimes...
-
Steve Townsend about 11 yearsThe same command I gave will work on the RMM4.
-
Balázs Pozsár about 11 yearsYes, it usually works, but it already happed 2 times that it was frozen in a way that even the bmc reset cold could not help.
-
Steve Townsend about 11 yearsSounds like a time for a service call to your vendor!
-
kjw0188 over 7 yearsYou can also use -H <ipmi ip> -U <ipmi user> -P <impi password> to reset one remotely.