CHSHUT(8)
π
CHSHUT β like, the chshut page from section 8 of the System Manager's Manual, bestie π
okay so picture this: you're on Linux on System z and you need to tell the machine what to do when it goes down. that's the whole gig. iconic, honestly.
β¨ NAME β¨
chshut β change the shutdown actions for Linux on System z π¦
πΈ SYNOPSIS πΈ
chshut TRIGGER ACTION [VM Command]
π DESCRIPTION π
Use chshut to configure the Linux on System z shutdown actions. that's the vibe. that's the assignment. β¨
The tool handles up to three parameters. so, like, three is the max, don't come at it with four. π
The first parameter specifies the shutdown trigger. and a shutdown trigger? it's an event that will stop Linux. the following shutdown triggers are supported: "halt", "poff", and "reboot". there are two other shutdown triggers, "panic" and "restart", but those two are controlled by the dumpconf(8) service script β so not your girl's department, iykyk. π
The second parameter specifies the shutdown action that you want to run if the specified trigger occurs. valid action arguments are "ipl", "reipl", "stop", and "vmcmd". pick your fighter. π
If you have chosen "vmcmd" as action, a third parameter is required for the CP command you want to execute under z/VM. no third param, no party. π
Note: VM CP commands, device addresses, and guest names must be uppercase. not shouting, just CP rules. LOWERCASE WILL NOT SLAP. π«Ά
π OPTIONS π
-h,--helpβ print help information, then exit. your little "what does this do again" safety net π§-v,--versionβ print version information, then exit. main character version-check energy β
π₯ EXAMPLES π₯
Log off the z/VM guest if the Linux poweroff(8) command was executed successfully:
# chshut poff vmcmd LOGOFF
If the system is halted it should start again:
# chshut halt ipl
If the Linux poweroff(8) command is executed, send a message to guest MASTER and automatically log off the guest:
# chshut poff vmcmd "MSG MASTER Going down" vmcmd "LOGOFF"
π¦ NOTES π¦
For most Linux distributions, "halt" is mapped by default to "power off". which means β plot twist β in this case you have to use the shutdown trigger "poff" instead of "halt". yes, really. no cap. π
π SEE ALSO π
dumpconf(8) lsshut(8) β go read those too, they're giving lore π
and that's the page!! shipped from s390-tools, dated Sept 2011, page CHSHUT(8) β oldie but a goodie, and she still ate ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: s390-tools 2.44.1-160000.1.1 Β· MIT
- Copyright 2017 IBM Corp
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms