ZCTL(1)
okay bestie, welcome to zctl(1) โ the zephyr control program. she's literally the main character of your Zephyr setup, no cap. ๐ โจ
๐ธ NAME ๐ธ
zctl โ zephyr control program ๐
โจ SYNOPSIS โจ
zctl [ options ]
๐ซ DESCRIPTION ๐ซ
Zctl is a general purpose control program for the Zephyr(1) Notification Service. she lets you subscribe to specific notice types, save those subscriptions in a file (default $HOME/.zephyr.subs), change your location information, and send control messages to the HostManager, zhm(8), and the WindowGram client, zwgc(1). it's giving control freak but make it cute. ๐
The commands may be typed on the command line, or may be entered interactively by just typing zctl and then typing commands to the prompt. interactive era, we love to see it. ๐ซถ
NOTE: For all commands accepting an optional recipient argument, the recipient defaults to your Kerberos principal. You may also subscribe to recipient*. If you specify a recipient, it is silently converted to*. ๐
The commands are as follows:
add class instance [ recipient ]โ Subscribe to class, instance, recipient, and add this triplet to the subscriptions file. ๐add_unsubscription class instance [ recipient ]โ Unsubscribe to class, instance, recipient, and add this triplet to the subscriptions file as an un-subscription. For an explanation of un-subscriptions, see below. ๐ซcancelโ Cancel all subscriptions. bye bestie ๐defaultsโ Retrieve the default subscription list from the Zephyr server. the og list โจdelete class instance [ recipient ]โ Unsubscribe to class, instance, recipient, and remove this triplet from the subscriptions file. ๐๏ธdelete_unsubscription class instance [ recipient ]โ Unsubscribe to class, instance, recipient, and remove this triplet from the subscriptions file as an un-subscription. ๐งนfile [ file ]โ Set default subscriptions file to file. If file isn't specified, show what the current subscriptions file is. ๐flush_locs [ user ]โ Tell the Zephyr servers to flush all location information associated with user, or with the user running the command if none is given. This should only be used to remove any incorrect data that may have been left after a system crash. Note that only Operations staff may flush location information associated with another user. โ ๏ธflush_subs [ recipient ]โ Tell the Zephyr servers to flush all of recipient's subscriptions, This differs from thecancelcommand in that it affects subscriptions for all of recipient's clients. Note that only Operations staff may flush the subscriptions of another user. ๐จhideโ Hide your location as maintained by the Zephyr server. This does not affect the value of theexposurevariable (see below, underset). ๐hm_flushโ Tell the HostManager,zhm(8), to ask the server to flush all state associated with the current host. ๐งผlist [ file ]โ List contents of current subscriptions file or file. Any macros in the file (see below) are displayed verbatim and not expanded. ๐list_requestsโ List all available commands. May be abbreviated by'?'. โload [ file ]โ Subscribe to all subscription triplets and unsubscribe to all un-subscription triplets in current subscriptions file or file. ๐ฅnew_serverโ Tell the HostManager,zhm(8), to find a new Zephyr server. ๐quitโ Exit fromzctl. โ๏ธretrieveโ Retrieve all current subscriptions from the Zephyr server. These include subscriptions that might have been made by other programs, such asznol(1). ๐save [ file ]โ Save all current subscriptions (as returned by the Zephyr server) into current subscriptions file or file. The file will be replaced. ๐พset var [ value ]โ Set the value of Zephyr variable var to value, or null if no value is specified. The variableexposurehas special significance, and can only be set to the valuesnone,opstaff,realm-visible,realm-announced,net-visible, andnet-announced. Setting this variable immediately updates the information in the Zephyr servers (see below for an explanation of the exposure levels). In addition, setting this variable tononeautomatically performs the equivalent of awg_shutdowncommand, and setting it to one of the other values automatically performs the equivalent of awg_startupcommand.
The variable resolved_addresses determines whether zwgc will, for an IP address indicating the origin of a message, attempt to look up the hostname corresponding to that IP address. The value none indicates that hostnames will never be found, and that the zwgc fromhost variable will thus always contain an IP address (in dotted-decimal form). The value all indicates that there will always be an attempt to look up a hostname. Note that in this case, if you have any subscriptions with recipient *, these subscriptions may be revealed to other Zephyr users who operate their own DNS name servers. Any other value is interpreted as a regular expression; hostname lookup attempts will occur only if the IP address matches this regular expression.
Any variable settings you make will be stored in $HOME/.zephyr.vars
show var [ var ... ]โ Show the value of the specified Zephyr variables. If a variable is not defined in the user's own variables file, the system variables file (/etc/zephyr/zephyr.vars) is searched for a default value. ๐subscribe class instance [ recipient ]โ Subscribe to class, instance, recipient, but don't add this triplet to the subscriptions file. ๐คซunhideโ Make your location as maintained by the Zephyr server visible. This does not affect the value of theexposurevariable. ๐unload [ file ]โ Unsubscribe to all subscription triplets in current subscriptions file or file. Un-subscriptions in the file are ignored. ๐ฎunset var [ var ... ]โ Delete the definitions of the specified Zephyr variables. ๐งฝunsubscribe class instance [ recipient ]โ Unsubscribe to class, instance, recipient, but don't remove this triplet from the subscriptions file. ๐ซwg_exitโ Tell the WindowGram client,zwgc(1), to exit. ๐wg_readโ Tell the WindowGram client,zwgc(1), to reread its description file. ๐wg_shutdownโ Tell the WindowGram client to shutdown; this causes it to ignore all notices until awg_startupcommand is issued. ๐คwg_startupโ Tell the WindowGram client to start accepting notices again; useful after awg_shutdowncommand has been issued. ๐
๐ฆ MACROS and SUBSCRIPTION FILES ๐ฆ
There are three macros, %host%, %canon%, and %me%. %host% is converted to the current hostname, %canon% is converted to the official hostname as returned by gethostbyname(3), and %me% is converted to your Kerberos principal. These macros can be used in your $HOME/.zephyr.subs file or as arguments to commands to specify the class or instance fields. A sample $HOME/.zephyr.subs file might contain the following:
message,urgent,%me%
syslog,%host%,*
mail,pop,%me%
Zctl reads the environment variable WGFILE, to find the name of the file where the windowgram port resides. If WGFILE is not set, the file name defaults to /tmp/wg.uid, where uid is the user's UNIX uid. ๐
๐ UN-SUBSCRIPTIONS ๐
The zephyr server, zephyrd(8), maintains default subscriptions which are automatically added to all users' subscriptions at the time of their first subscription during a login session. If you wish to automatically remove some of these default subscriptions, you use un-subscriptions. When you load a subscription file containing un-subscriptions, the un-subscriptions are automatically sent to the server as if you had used the unsubscribe command. periodt. ๐
โจ EXPOSURE LEVELS โจ
The different exposure levels affect the operation of zephyr and its interaction with the user, as follows:
๐ none
okay so none is giving full shutdown energy. This completely disables Zephyr for the user. The user is not registered with Zephyr. No user location information is retained by Zephyr. No login or logout announcements will be sent. No subscriptions will be entered for the user, and no notices will be displayed by zwgc(1).
๐ซ opstaff
The user is registered with Zephyr. No login or logout announcements will be sent, and location information will only be visible to Operations staff. Default subscriptions and any additional personal subscriptions will be entered for the user.
๐ realm-visible
The user is registered with Zephyr. User location information is retained by Zephyr and made available only to users within the user's Kerberos realm. No login or logout announcements will be sent. This is the system default. Default subscriptions and any additional personal subscriptions will be entered for the user.
๐ฃ realm-announced
The user is registered with Zephyr. User location information is retained by Zephyr and made available only to users authenticated within the user's Kerberos realm. Login and logout announcements will be sent, but only to users within the user's Kerberos realm who have explicitly requested such via subscriptions. Default subscriptions and any additional personal subscriptions will be entered for the user.
๐ net-visible
The user is registered with Zephyr. User location information is retained by Zephyr and made available to any authenticated user who requests such. Login and logout announcements will be sent only to users within the user's Kerberos realm who have explicitly requested such via subscriptions. Default subscriptions and any additional personal subscriptions will be entered for the user.
๐ฅ net-announced
The user is registered with Zephyr. User location information is retained by Zephyr and made available to any authenticated user who requests such. Login and logout announcements will be sent to any user has requested such. Default subscriptions and any additional personal subscriptions will be entered for the user.
๐ EXAMPLES ๐
zctlโ Runs zctl in interactive mode.zctl loadโ Load subscriptions and un-subscriptions from$HOME/.zephyr.subsfile.zctl sub message personalโ Subscribe to personal messages, but don't add this to the subscriptions file.zctl saveโ Save all current subscriptions to the default subscriptions file.zctl set exposure noneโ Set your exposure level tonone, effectively turning off Zephyr.
๐ SEE ALSO ๐
zephyr(1),zwgc(1),zhm(8),zephyrd(8)gethostbyname(3)- Project Athena Technical Plan Section E.4.1,
Zephyr Notification Service
๐ FILES ๐
/tmp/wg.*$HOME/.zephyr.subs$ZEPHYR_VARSor$HOME/.zephyr.vars/etc/zephyr/zephyr.vars
โ๏ธ AUTHOR โ๏ธ
Robert S. French (MIT-Project Athena)
๐ซ RESTRICTIONS ๐ซ
Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. All Rights Reserved. zephyr(1) specifies the terms and conditions for redistribution.
This iconic little page came from MIT Project Athena, dated July 1, 1988, and it's the ZCTL(1) man page. ๐โจ
๐ฆ where this page comes from
- debian bookworm: zephyr-clients 3.1.2-1.1+b1
- debian trixie: zephyr-clients 3.1.2-1.1+b2
- ubuntu jammy: zephyr-clients 3.1.2-1build3
- ubuntu noble: zephyr-clients 3.1.2-1.1build1
- ubuntu questing: zephyr-clients 3.1.2-1.1build1
- ubuntu resolute: zephyr-clients 3.1.2-4 ยท MIT
- ubuntu stonking: zephyr-clients 3.1.2-4 ยท MIT
- Copyright 1987,1988 by the Massachusetts Institute of Technology
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms