Linux has the "magic sysrq key" to reboot frozen machines remotely, and it works over the serial console, but what about FreeBSD? Is there a way to send a "control-alt-delete" to FreeBSD servers on serial consoles?
Asked
Active
Viewed 4,075 times
1 Answers
8
Assuming you have a kernel with the debugger option compiled in you can use ControlAltEscape. From there you can call boot(0) or panic.
Chapter 10 of the FreeBSD developers handbook explains this in a lot more detail.
So much for more or less the same as SysReq via a keyboard. On the serial console, you need to send the break signal and have the options BREAK_TO_DEBUGGER enabled. But "it is not the default since there are a lot of serial adapters around that gratuitously generate a BREAK condition, for example when pulling the cable".
-
chapter 10 of the freebsd handbook is about [printing](http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing.html), did you mean chapter 10 of [the developers handbook](http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-online-ddb.html)? – anarcat Oct 26 '13 at 21:58
-
Aye. I did. I was linking to both the normal handbook and the lin you posted, then I cleaned it up. I guess I got sidetracked during that. Thanks for noticing. – Hennes Oct 27 '13 at 16:52
-
so i tried it, and it doesn't work from the serial console, it seems that you need to send a BREAK and have the `options BREAK_TO_DEBUGGER` in your kernel config. – anarcat Oct 29 '13 at 15:31