vmcp(8)
π vmcp(8) β like, the z/VM control program whisperer
okay bestie, welcome to vmcp from the System Manager's Manual β this is the little tool that lets you talk to the z/VM control program and honestly it's giving main character energy π
β¨ NAME β¨
vmcp β send commands to the z/VM control program π¦
πΈ SYNOPSIS πΈ
vmcp [-k] [-b <size>] command
vmcp [-h|-v]
π DESCRIPTION π
So here's the vibe: vmcp lets Linux users send commands straight to the control program of z/VM. The normal usage is just invoking vmcp with the command you want to execute. Easy.
If you do not specify the -k option, the whole command line is automatically translated into uppercase β like, no cap, every letter gets shouted π₯. The response from z/VM gets written to the standard output.
vmcp needs a kernel feature that shows up as the device node /dev/vmcp. The kernel module defines a buffer size, and that size limits the length of the response. Every output larger than the compiled buffer size is silently dropped π β like it just vanishes, not a single warning, rude. And depending on your shell, please remember to escape special characters like * using \* instead, iykyk.
π RETURN CODES π
vmcp writes the response to stdout and any error message to stderr. Depending on the success, one of these return codes comes back at you:
0β No problem invmcpor CP. Slay, we love a clean run β¨1β CP returned a non-zero response code. In that case the message
Error: non-zero CP response for command '<command>': #<num>"
is written to stderr. <num> contains the numerical value of the response code, and <command> contains the commands as send to CP. (Yes, that's exactly how it's written β keep it that way π
)
2β The specified buffer was not large enough to hold CP's response. The command was executed, nevertheless, and the response was truncated π. You can use the--bufferoption to increase the response buffer. The message
Error: output (<num> bytes) was truncated, try --buffer to
increase size
is written to stderr. <num> contains the necessary buffer size in bytes.
3β Linux reported an error tovmcp. See the error message for details.4β The options passed tovmcpwere erroneous. See the error messages for details.
π«Ά EXAMPLES π«Ά
To get your user id:
vmcp query userid
To attach the device 1234 to your guest:
vmcp attach 1234 \*
If you add the following line to /etc/sudoers
ALL ALL=NOPASSWD: /sbin/vmcp indicate
then every user on the system can run the indicate command π₯:
sudo vmcp indicate
π CREDITS π
The basic idea of vmcp is based on cpint of Neale Fergusson. Respect where respect is due π«‘π
β OPTIONS β
-hor--helpβ Print usage information, then exit. A little cry for help, but make it informative π§-vor--versionβ Print version information, then exit.-kor--keepcaseβ Using this option,vmcpdoes not convert the command to uppercase. (The default is to translate the command string to uppercase.) So like, if you want your lowercase letters to survive, this is your girl π-b <size>or--buffer=<size>β Specify a buffer size for the response. The buffer size can be specified from4096bytes (4k) to1048576Bytes (1M). The default size is 2 pages (8192Bytes). You can also usek/K/m/Mfor kilobytes and Megabytes π
π¦ SEE ALSO π¦
okay that's the whole page, no notes π this was s390-tools, dated Apr 2006 β yeah she's an icon and she's been an icon for a minute πβ¨ periodt.
π¦ 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