1826004 Members
3374 Online
109690 Solutions
New Discussion

iLO and SysRq ?

 
SOLVED
Go to solution
Morten Lange
Occasional Advisor

iLO and SysRq ?

Hello

I am sorry for "crossposting", (see the ProLiant server forum ) but I think this is important:
Has anyone managed to issue a SysRq sequence to a Linux console through iLO (or otherwise) to a blade server such as BL20p ?

Best Regards,
Morten Lange
Its a _N_Iceland
2 REPLIES 2
Thilo Knoch
Frequent Advisor

Re: iLO and SysRq ?

I have never worked with a blade server, but at least the old RILOE card does not transmit the Print or Alt-Print(=SysRq) Key, too.
And you can not even define SysRq via "Remote Console Hot Keys" with this board.
If it is no problem to build a customized kernel, there could be a workaround/check described in the kernel documentation:
(/usr/src/linux/)Documentation/sysrq.txt
...
* I hit SysRQ, but nothing seems to happen, what's wrong?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There are some keyboards which do not support 'SysRQ', you can try running
'showkey -s' and pressing SysRQ or alt-SysRQ to see if it generates any
0x54 codes. If it doesn't, you may define the magic sysrq sequence to a
different key. Find the keycode with showkey, and change the define of
'#define SYSRQ_KEY 0x54' in [/usr/src/linux/]include/asm/keyboard.h to
the keycode of the key you wish to use, then recompile. Oh, and by the way,
you exit 'showkey' by not typing anything for ten seconds.
...

Louis Bouchard
Occasional Advisor
Solution

Re: iLO and SysRq ?

Hello,


I'll take care of crossposting the answer. Here is some trick that worked for me.


I used /proc/sys/kernel/sysrq-key which is usually mapped to 84 (PrintScreen) and remapped it to 109 (PgDown). Here hare the steps :


1) Add "kernel.sysrq-key = 109 into /etc/sysctl.conf


2) Modify the kernel value with
# echo 109 > /proc/sys/kernel/sysrq-key


3) Map PgDown+p to a hot key in the Virtual Console for ILO (to test that SysRq is working)


You should see the content of the registers.


Hope It helps,


...Louis