CHZCRYPT(8)
π CHZCRYPT(8) β the zcrypt glow-up command, bestie
okay so real talk: this is chzcrypt from the System Manager's Manual, section 8. she's a system admin girlie and she's here to rearrange your crypto devices. let's get into it π
β¨ NAME β¨
chzcrypt β modify zcrypt configuration. that's it, that's the vibe. she tweaks stuff. π
π¦ SYNOPSIS π¦
chzcrypt -e | -d ( -a | <device id> [...] )
chzcrypt --config-on | --config-off ( -a | <device id> [...] )
chzcrypt [ -p | -n ] [ -t <timeout> ]
chzcrypt [ -c <timeout> ]
chzcrypt [ -q <domain> ]
chzcrypt -h
chzcrypt -v
like yes she has a lot of modes. main character energy fr. β
πΈ DESCRIPTION πΈ
so chzcrypt is the command you use to configure the cryptographic devices that zcrypt manages, and to modify zcrypt's AP bus attributes. lowkey iconic.
here's the tea though: attributes may vary depending on the kernel version. π and chzcrypt requires that the sysfs filesystem is mounted. no sysfs, no slay. periodt.
π OPTIONS π
-e,--enableβ set the given cryptographic device(s) online. wake them up bestie β¨-d,--disableβ set the given cryptographic device(s) offline. nap time π΄-a,--allβ set all available cryptographic device(s) online or offline. all of them. every single one. π₯--config-onβ set the given cryptographic card device(s) config on ('configured'). yes the quotes are part of the lore.--config-offβ set the given cryptographic card device(s) config off ('deconfigured').-p,--poll-thread-enableβ enable zcrypt's poll thread. let her poll π«Ά-n,--poll-thread-disableβ disable zcrypt's poll thread. she's done polling.-c,--config-time <timeout>β set the configuration timer for re-scanning the AP bus to<timeout>seconds. β±οΈ--se-associate <association-index> <queue-device>β associate the given queue device with the given association index. > β οΈ this one is only valid within a Secure Execution guest with AP pass-through support enabled. no cap.--se-bind <queue-device>β bind the given queue device. same deal: only valid within a Secure Execution guest with AP pass-through support enabled. π--se-unbind <queue-device>β unbind the given queue device. also only valid within a Secure Execution guest with AP pass-through support enabled. consistency queen π-t,--poll-timeout <poll_timeout>β set the poll timer to run the poll tasklet all<poll_timeout>nanoseconds. nanoseconds!! tiny!! π§-q,--default-domain <domain>β set the new default domain of the AP bus to<domain>. the number of available domains can be retrieved with thelszcryptcommand (the'-d'option). iykyk π-V,--verboseβ print verbose messages. she will tell you EVERYTHING. π-h,--helpβ print help text and exit. π-v,--versionβ print version information and exit. π
π the arguments π
<device id>β specifies a cryptographic device which will be set either online or offline or configured on or off. for online and offline the device can either be a card device or a queue device. a queue device can only get switched online when the providing card is online. π for config on/off the device needs to be a card device. a card or queue device cannot get switched online if the card is in deconfigured state. so likeβ¦ order of operations matters bestie.
π please note that the card device and queue device representation are both in hexadecimal notation. don't come in here with decimal, i'm begging π
<queue-device>β an APQN queue device given asxy.abcdas it is listed bylszcrypt -V. cute little dotted format, obsessed. π¦
π EXAMPLES π
chzcrypt -e 0 1 12
will set the cryptographic card devices 0, 1 and 12 online. trio slay β¨
chzcrypt -e 10.0038
will set the cryptographic device '10.0038' respectively card id 16 (0x10) with domain 56 (0x38) online. see? hex. told you. π
chzcrypt -d -a
will set all available cryptographic devices offline. goodbye everyone π
chzcrypt --config-on -a -V
set all available crypto cards to config on, be verbose. loud and proud π£οΈ
chzcrypt -V --config-off card01 card03
switch the two crypto cards 1 and 3 to deconfigured, be verbose. note that card01 and card03 are exactly how it's written here, character for character, do not come for me π
chzcrypt -c 60 -n
will set configuration timer for re-scanning the AP bus to 60 seconds and disable zcrypt's poll thread. multitasking icon β±οΈ
chzcrypt -q 67
will set the default domain to 67. new default, who dis πΈ
π§ NOTES π§
support for crypto cards to get switched config on or off requires a Linux kernel supporting this. if the required sysfs attribute file does not exist, it is assumed there is an older kernel running and chzcrypt exits with an appropriate message. so like, don't blame her, blame your kernel π
even more: config on/off may require support from a hypervisor like KVM or zVM and may fail if the Linux kernel is unable to perform the SCLP command. check syslog on failure. fr fr. π
π«Ά bind, associate and unbind command on a queue device are only available and valid within a Secure Execution environment with AP pass-through enabled and a Linux kernel providing the low level sysfs API. if these conditions are not fulfilled, the command will fail with an appropriate error messages. not me warning you twice π
β SEE ALSO β
lszcrypt(8)β go read her too, she's the whole reason you know your-Voutput π¦
so yeah, that's the whole page. go forth and configure, bestie. and remember: if it breaks, check syslog before you check your group chat. ππ
sign-off π β brought to you by s390-tools, dated MAY 2023. version of record, frozen in time like a little time capsule. mwah. π β¨
π¦ where this page comes from
- opensuse-leap 16.0: s390-tools 2.44.1-160000.1.1 Β· MIT
- Copyright 2020, 2023 IBM Corp
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms