Magic Sys Rq Key - Alternate Ways To Invoke Magic SysRq

Alternate Ways To Invoke Magic SysRq

While this was originally implemented as part of the kernel's keyboard handler for debugging, the functionality has been also exposed via the proc filesystem and is commonly used to provide extended management capabilities to headless and remote systems. As an example, shell script can be simply used:

echo b > /proc/sysrq-trigger

This is equivalent to the key combination Alt+SysRq+B which reboots the machine.

The Linux daemons sysrqd and tcpconsole provide a method of accessing SysRq features over a TCP connection after authenticating with a plain-text password.

The Xen hypervisor has functionality to send magic commands to hosted domains via its "xm sysrq" command.

Many embedded systems have no attached keyboard, but instead use a serial console for text input/output to the running system. It is possible to invoke a Magic SysRq feature over a serial console by sending a 'break' serial command, followed by the desired key. The method of sending a break is dependent on the terminal program or hardware used to connect to the serial console.

For minicom, a popular serial terminal program, the command sequence: 'ctrl-a f' will initiate a break sequence. So the command: 'ctrl-a f m' would show memory information about the system.

Read more about this topic:  Magic Sys Rq Key

Famous quotes containing the words alternate, ways, invoke and/or magic:

    I alternate between reading cook books and reading diet books.
    Mason Cooley (b. 1927)

    I feel the desire to be with you all the time. Oh, an occasional absence of a week or two is a good thing to give one the happiness of meeting again, but this living apart is in all ways bad. We have had our share of separate life during the four years of war. There is nothing in the small ambition of Congressional life, or in the gratified vanity which it sometimes affords, to compensate for separation from you. We must manage to live together hereafter. I can’t stand this, and will not.
    Rutherford Birchard Hayes (1822–1893)

    There is another side to chivalry. If it dispenses leniency, it may with equal justification invoke control.
    Freda Adler (b. 1934)

    We think of religion as the symbolic expression of our highest moral ideals; we think of magic as a crude aggregate of superstitions. Religious belief seems to become mere superstitious credulity if we admit any relationship with magic. On the other hand our anthropological and ethnographical material makes it extremely difficult to separate the two fields.
    Ernst Cassirer (1874–1945)