Unsolved
1 Rookie
•
22 Posts
0
444
December 21st, 2023 08:26
sending sysrq through idrac virtual console
opening the virtual console on idrac 6.10.80.00, under Console Controls > General > Keyboard Macros,
there are various macros defined (although most of them can be entered simply using the Keyboard feature).
One of them is Alt-SysRq-B which, on a properly configured Linux box (https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html) will "immediately reboot the system without syncing or unmounting your disks"
There are multiple others SysRq combinations that I would wish to use, but there is no way to enter, for example, a Alt-SysRq-F, on the virtual console. This needs to be achieved through other means (like ipmitool).
Can you add a way to press the remaining Alt-SysRq combinations? Cheers



Dell-Martin S
Moderator
•
3.5K Posts
0
December 21st, 2023 15:01
Hi,
Currently, there is no direct way to send all SysRq key combinations through the iDRAC virtual console. However, there are a couple of workarounds that you can use to achieve this:
Option 1: Use the Keyboard Macro feature
Although the keyboard macro for Alt-SysRq-B only applies to the virtual console, you can use a similar approach to send other SysRq key combinations. Here's how:
Once you have created the macro, you can invoke it from the virtual console by pressing the F11 key.
Option 2: Use a third-party tool
If you need to send a SysRq key combination frequently, you may consider using a third-party tool that can directly communicate with the server's serial port. This would provide a more direct way to send the SysRq key without relying on the iDRAC virtual console's keyboard macro functionality.
Here's an example of using the
ipmitoolutility to send a SysRq key combination:This command sends the Alt-SysRq-F key combination to the server's serial port. Replace
<server_ip>with the server's IP address,<username>with the iDRAC user name, and<password>with the iDRAC password.Always be cautious when using such commands, especially those that can immediately reboot a system without proper synchronization or unmounting of disks, as it may result in data loss.
Additionally, make sure you have the appropriate permissions and authorization to perform these actions, and test them in a safe environment before applying them to a production system.
Both options have their limitations. The keyboard macro approach is simpler but requires creating a separate macro for each key combination. Using a third-party tool provides more flexibility but requires additional setup and may not be suitable for all situations.
I hope this helps you to use the Alt-SysRq combinations on your Linux system. If you have any other questions, please feel free to ask. 😊
frigo_
1 Rookie
•
22 Posts
0
December 22nd, 2023 07:58
hi! thanks for the exhaustive answer
> Click Add Macro.
I don't have an Add Macro button to click. You sure this exists?
Dell-Martin S
Moderator
•
3.5K Posts
0
December 22nd, 2023 14:03
Hi,
the keyboard macro functionality for SysRq key combinations was introduced in iDRAC version 7.30.30.30, and is not available in earlier versions. As the current version of your iDRAC is 6.10.80.00, you are unable to use this feature. To send SysRq key combinations such as Alt-SysRq-F, you will need to use a different method such as ipmitool.
frigo_
1 Rookie
•
22 Posts
0
December 22nd, 2023 16:42
ah ok there is no 7.30.30.30 (or at least no public release of it yet), I'll gladly test once it's available. Thanks!