1 .\" $Id: zctl.1,v 1.12 1999/01/22 23:18:29 ghudson Exp $
3 .\" Copyright 1987,1988 by the Massachusetts Institute of Technology
4 .\" All rights reserved. The file /usr/include/zephyr/mit-copyright.h
5 .\" specifies the terms and conditions for redistribution.
8 .TH ZCTL 1 "July 1, 1988" "MIT Project Athena"
9 .ds ]W MIT Project Athena
11 zctl \- zephyr control program
19 is a general purpose control program for the
21 Notification Service. It allows the user to subscribe to specific
22 notice types, to save the subscriptions in a file (default
23 $HOME/.zephyr.subs), to change his location information, and to send
24 control messages to the HostManager,
26 and the WindowGram client,
29 The commands may be typed on the command line, or may be entered
30 interactively by just typing
32 and then typing commands to the prompt.
35 For all commands accepting an optional \fIrecipient\fR argument, the
36 \fIrecipient\fR defaults to your Kerberos principal. You may also
37 subscribe to recipient ``\fI*\fR''. If you specify a recipient, it is
38 silently converted to ``\fI*\fR''.
40 The commands are as follows:
42 .B add \fIclass instance\fR [ \fIrecipient\fR ]
43 Subscribe to \fIclass, instance, recipient\fR, and add this triplet to
44 the subscriptions file.
46 .B add_unsubscription \fIclass instance\fR [ \fIrecipient\fR ]
47 Unsubscribe to \fIclass, instance, recipient\fR, and add this triplet
48 to the subscriptions file as an un-subscription.
49 For an explanation of un-subscriptions, see below.
52 Cancel all subscriptions.
55 Retrieve the default subscription list from the Zephyr server.
57 .B delete \fIclass instance\fR [ \fIrecipient\fR ]
58 Unsubscribe to \fIclass, instance, recipient\fR, and remove this triplet
59 from the subscriptions file.
61 .B delete_unsubscription \fIclass instance\fR [ \fIrecipient\fR ]
62 Unsubscribe to \fIclass, instance, recipient\fR, and remove this triplet
63 from the subscriptions file as an un-subscription.
65 .B file \fR[ \fIfile\fR ]
66 Set default subscriptions file to \fIfile\fR. If \fIfile\fR isn't specified,
67 show what the current subscriptions file is.
70 Tell the Zephyr servers to flush all location information associated with
71 the user. This should only be used to remove any incorrect data that may have
72 been left after a system crash.
75 Hide your location as maintained by the Zephyr server. This does not
76 affect the value of the exposure variable (see below, under
82 to ask the server to flush all state associated with the current host.
84 .B list \fR[ \fIfile\fR ]
85 List contents of current subscriptions file or
87 Any macros in the file (see below) are displayed verbatim and not expanded.
90 List all available commands. May be abbreviated by '?'.
92 .B load \fR[ \fIfile\fR ]
93 Subscribe to all subscription triplets and unsubscribe to all
94 un-subscription triplets in current subscriptions file or \fIfile\fR.
99 to find a new Zephyr server.
105 Retrieve all current subscriptions from the Zephyr server. These include
106 subscriptions that might have been made by other programs, such as
109 .B save \fR[ \fIfile\fR ]
110 Save all current subscriptions (as returned by the Zephyr server)
111 into current subscriptions file or \fIfile\fR. The
112 file will be replaced.
114 .B set \fIvar\fR [ \fIvalue\fR ]
115 Set the value of Zephyr variable \fIvar\fR to \fIvalue\fR, or null if
116 no \fIvalue\fR is specified. The variable \fBexposure\fR has special
117 significance, and can only be set to the values none, opstaff, realm-visible,
118 realm-announced, net-visible, and net-announced. Setting this variable
119 immediately updates the information in the Zephyr servers (see below for
120 an explanation of the exposure levels). In addition,
121 setting this variable to none automatically performs the equivalent of a
123 command, and setting it to one of the other values automatically
124 performs the equivalent of a
128 Any variable settings you make will be stored in \fI$HOME/.zephyr.vars\fR
130 .B show \fIvar\fR [ \fIvar\fR \ ... ]
131 Show the value of the specified Zephyr variables. If a variable is not
132 defined in the user's own variables file, the system variables file
133 (\fI/etc/athena/zephyr.vars\fR) is searched for a default value.
135 .B subscribe \fIclass instance\fR [ \fIrecipient\fR ]
136 Subscribe to \fIclass, instance, recipient\fR, but don't add this triplet to
137 the subscriptions file.
140 Make your location as maintained by the Zephyr server visible. This does not
141 affect the value of the exposure variable.
143 .B unload \fR[ \fIfile\fR ]
144 Unsubscribe to all subscription triplets in current subscriptions file
145 or \fIfile\fR. Un-subscriptions in the file are ignored.
147 .B unset \fIvar\fR [ \fIvar\fR \ ... ]
148 Delete the definitions of the specified Zephyr variables.
150 .B unsubscribe \fIclass instance\fR [ \fIrecipient\fR ]
151 Unsubscribe to \fIclass, instance, recipient\fR, but don't remove this triplet
152 from the subscriptions file.
155 Tell the WindowGram client,
160 Tell the WindowGram client,
162 to reread its description file.
165 Tell the WindowGram client to shutdown; this causes it to ignore all
166 notices until a wg_startup command is issued.
169 Tell the WindowGram client to start accepting notices again; useful
170 after a wg_shutdown command has been issued.
171 .SH MACROS and SUBSCRIPTION FILES
172 There are three macros,
173 .I %host%, %canon%, \fRand\fI %me%. %host%
174 is converted to the current hostname, \fI%canon%\fR is converted to the
175 official hostname as returned by
177 and \fI%me%\fR is converted to your Kerberos principal. These macros can be
178 used in your \fI$HOME/.zephyr.subs\fR file or as arguments to commands
183 fields. A sample \fI$HOME/.zephyr.subs\fR file might contain the following:
192 reads the environment variable \fBWGFILE\fR, to find the name of the
193 file where the windowgram port resides. If \fBWGFILE\fR is not set,
194 the file name defaults to /tmp/wg.\fIuid\fR, where \fIuid\fR is the
199 maintains default subscriptions which are automatically added to all
200 users' subscriptions at the time of their first subscription during a
201 login session. If you wish to automatically remove some of these
202 default subscriptions, you use
206 a subscription file containing
207 un-subscriptions, the un-subscriptions are automatically sent to the
208 server as if you had used the
212 The different exposure levels affect the operation of zephyr and its
213 interaction with the user, as follows:
216 This completely disables Zephyr for the user. The user is not
217 registered with Zephyr. No user location information is
218 retained by Zephyr. No login or logout announcements will be
219 sent. No subscriptions will be entered for the user, and no notices
224 The user is registered with Zephyr. No login or logout
225 announcements will be sent, and location information will only be
226 visible to Operations staff. Default subscriptions and any additional
227 personal subscriptions will be entered for the user.
230 The user is registered with Zephyr. User location information is retained by
231 Zephyr and made available only to users within the user's
232 Kerberos realm. No login or logout announcements will be sent. This
233 is the system default. Default subscriptions and any additional
234 personal subscriptions will be entered for the user.
237 The user is registered with Zephyr. User location information is retained by
238 Zephyr and made available only to users authenticated within the user's
239 Kerberos realm. Login and logout announcements will be sent, but only to
240 users within the user's Kerberos realm who have explicitly requested
241 such via subscriptions. Default subscriptions and any additional
242 personal subscriptions will be entered for the user.
245 The user is registered with Zephyr. User location information is
246 retained by Zephyr and made available to any authenticated user who
247 requests such. Login and logout announcements will be sent only to users
248 within the user's Kerberos realm who have explicitly requested such via
249 subscriptions. Default subscriptions and any additional personal
250 subscriptions will be entered for the user.
253 The user is registered with Zephyr. User location information is retained by
254 Zephyr and made available to any authenticated user who requests such. Login
255 and logout announcements will be sent to any user has requested such.
256 Default subscriptions and any additional personal
257 subscriptions will be entered for the user.
261 Runs \fIzctl\fR in interactive mode.
264 Load subscriptions and un-subscriptions from \fI$HOME/.zephyr.subs\fR file.
266 .B zctl sub message personal
267 Subscribe to personal messages, but don't add this to the
271 Save all current subscriptions to the default subscriptions file.
273 .B zctl set exposure none
274 Set your exposure level to `none', effectively turning off Zephyr.
276 zephyr(1), zwgc(1), zhm(8), zephyrd(8)
279 Project Athena Technical Plan Section E.4.1, `Zephyr Notification
288 /etc/athena/zephyr.vars
291 Robert S. French (MIT-Project Athena)
294 Copyright (c) 1987,1988 by the Massachusetts Institute of Technology.
298 specifies the terms and conditions for redistribution.