Activating and deactivating the magic sysrequest feature

Red Hat Enterprise Linux 8.6 LPAR mode z/VM guest KVM guest

Use the sysrq procfs attribute to activate or deactivate the magic sysrequest feature.

Procedure

Issue the following command to activate the magic sysrequest function:
 echo 1 > /proc/sys/kernel/sysrq
Issue the following command to deactivate the magic sysrequest feature:
 echo 0 > /proc/sys/kernel/sysrq
Alternatively you can use sysctl to activate and deactivate the magic sysrequest feature. To check how the magic sysrequest function is set, issue:
# sysctl kernel.sysrq
kernel.sysrq = 1
In Red Hat® Enterprise Linux® 8.6 the magic sysrequest function is turned on by default. To turn it off using sysctl, issue:
# sysctl -w kernel.sysrq=0