How to trigger SysRq from ipmitool and ipmiconsole using the SysRq magic keys over an HP iLO4 ?

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • HP Integrated Lights-Out (iLO) 4
  • SysRq
  • ipmitool
  • ipmiconsole

Issue

  • How to send SysRq from ipmitool and ipmiconsole in order to force a crash dump in case the system hangs ?
  • How to trigger SysRq from ipmitool and ipmiconsole using the SysRq magic keys over an HP iLO4 ?

Resolution

How do I configure a SysRq keys ?

How to trigger SysRq event using ipmitool and ipmiconsole ?

  • On serial console we can trigger the SysRq event by sending a Break signal to the console and then by hitting the desired keys. After sending the Break wait for 2 secs in order to send the desired SysRq event to the console.

From ipmitool:

  • Run the below command to login to HP iLO4 management console,
 # ipmitool -I lanplus -H <IP of iLO> -U <user name of iLO4> sol activate
  • Press ~B to send Break signal to the console which will further display as [send break] over the terminal.
  • Press the desired Sysrq events.

Note: From ipmitool Break signal can be only send once.

From ipmiconsole:

  • Run the below command to login to HP iLO4 management console,
# ipmiconsole -h <IP of iLO4> -u <user name of iLO4> -P
  • Press &B to send Break signal to the console which will further display as [send break] over the terminal.
  • Press the desired Sysrq events.

Note: It is possible to send Break signal more than once.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.