348788cc2703b295ac84808c31570b3363c4af65
[openafs.git] / doc / man-pages / pod8 / bos.pod
1 =head1 NAME
2
3 bos - Introduction to the bos command suite
4
5 =head1 DESCRIPTION
6
7 The commands in the B<bos> command suite are the administrative interface
8 to the Basic OverSeer (BOS) Server, which runs on every file server
9 machine to monitor the other server processes on it. If a process fails,
10 the BOS Server can restart it automatically, taking into account
11 interdependencies between it and other processes. The BOS Server frees
12 system administrators from constantly monitoring the status of server
13 machines and processes.
14
15 There are several categories of commands in the B<bos> command suite:
16
17 =over 4
18
19 =item *
20
21 Commands to administer server process binary files: B<bos getdate>, B<bos
22 install>, B<bos prune>, and B<bos uninstall>.
23
24 =item *
25
26 Commands to maintain system configuration files: B<bos addhost>, B<bos
27 addkey>, B<bos adduser>, B<bos listhosts>, B<bos listkeys>, B<bos
28 listusers>, B<bos removehost>, B<bos removekey>, B<bos removeuser>, and
29 B<bos setcellname>.
30
31 =item *
32
33 Commands to start and stop processes: B<bos create>, B<bos delete>, B<bos
34 restart>, B<bos shutdown>, B<bos start>, B<bos startup>, and B<bos stop>.
35
36 =item *
37
38 Commands to set and verify server process and server machine status: B<bos
39 getlog>, B<bos getrestart>, B<bos getrestricted>, B<bos setauth>,
40 B<bos setrestart>, B<bos setrestricted> and B<bos status>.
41
42 =item *
43
44 A command to restore file system consistency: B<bos salvage>.
45
46 =item *
47
48 Commands to obtain help: B<bos apropos> and B<bos help>.
49
50 =back
51
52 The BOS Server and the B<bos> commands use and maintain the following
53 configuration and log files:
54
55 =over 4
56
57 =item *
58
59 The F</usr/afs/etc/CellServDB> file lists the local cell's database server
60 machines. These machines run the Authentication, Backup, Protection and
61 Volume Location (VL) Server processes, which maintain databases of
62 administrative information. The database server processes consult the file
63 to learn about their peers, whereas the other server processes consult it
64 to learn where to access database information as needed. To administer the
65 F<CellServDB> file, use the following commands: B<bos addhost>, B<bos
66 listhosts>, B<bos removehost>, and B<bos setcellname>.
67
68 =item *
69
70 The F</usr/afs/etc/KeyFile> file lists the server encryption keys that the
71 server processes use to decrypt tickets presented by client processes and
72 one another. To administer the F<KeyFile> file, use the following
73 commands: B<bos addkey>, B<bos listkeys>, and B<bos removekey>.
74
75 =item *
76
77 The F</usr/afs/etc/ThisCell> file defines the cell to which the server
78 machine belongs for the purposes of server-to-server communication.
79 Administer it with the B<bos setcellname> command. There is also a
80 F</usr/vice/etc/ThisCell> file that defines the machine's cell membership
81 with respect to the AFS command suites and Cache Manager access to AFS
82 data.
83
84 =item *
85
86 The F</usr/afs/etc/UserList> file lists the user name of each
87 administrator authorized to issue privileged B<bos> and B<vos>
88 commands. To administer the F<UserList> file, use the following commands:
89 B<bos adduser>, B<bos listusers>, and B<bos removeuser>.
90
91 =item *
92
93 The F</usr/afs/local/BosConfig> file defines which AFS server processes
94 run on the server machine, and whether the BOS Server restarts them
95 automatically if they fail. It also defines when all processes restart
96 automatically (by default once per week), and when the BOS Server restarts
97 processes that have new binary files (by default once per day). To
98 administer the F<BosConfig> file, use the following commands: B<bos
99 create>, B<bos delete>, B<bos getrestart>, B<bos setrestart>, B<bos
100 start>, and B<bos stop>.
101
102 =item *
103
104 The F</usr/afs/log/BosLog> file records important operations the BOS
105 Server performs and error conditions it encounters.
106
107 =back
108
109 For more details, see the reference page for each file.
110
111 =head1 OPTIONS
112
113 The following arguments and flags are available on many commands in the
114 B<bos> suite. The reference page for each command also lists them, but
115 they are described here in greater detail.
116
117 =over 4
118
119 =item B<-cell> <I<cell name>>
120
121 Names the cell in which to run the command. It is acceptable to abbreviate
122 the cell name to the shortest form that distinguishes it from the other
123 entries in the F</usr/vice/etc/CellServDB> file on the local machine. If
124 the B<-cell> argument is omitted, the command interpreter determines the
125 name of the local cell by reading the following in order:
126
127 =over 4
128
129 =item *
130
131 The value of the AFSCELL environment variable.
132
133 =item *
134
135 The local F</usr/vice/etc/ThisCell> file.
136
137 =back
138
139 Do not combine the B<-cell> and B<-localauth> options. A command on which
140 the B<-localauth> flag is included always runs in the local cell (as
141 defined in the server machine's local F</usr/afs/etc/ThisCell> file),
142 whereas a command on which the B<-cell> argument is included runs in the
143 specified foreign cell.
144
145 =item B<-help>
146
147 Prints a command's online help message on the standard output stream. Do
148 not combine this flag with any of the command's other options; when it is
149 provided, the command interpreter ignores all other options, and only
150 prints the help message.
151
152 =item B<-localauth>
153
154 Constructs a server ticket using the server encryption key with the
155 highest key version number in the local F</usr/afs/etc/KeyFile> file. The
156 B<bos> command interpreter presents the ticket, which never expires, to
157 the BOS Server during mutual authentication.
158
159 Use this flag only when issuing a command on a server machine; client
160 machines do not usually have a F</usr/afs/etc/KeyFile> file.  The issuer
161 of a command that includes this flag must be logged on to the server
162 machine as the local superuser C<root>. The flag is useful for commands
163 invoked by an unattended application program, such as a process controlled
164 by the UNIX B<cron> utility or by a cron entry in the machine's
165 F</usr/afs/local/BosConfig> file. It is also useful if an administrator is
166 unable to authenticate to AFS but is logged in as the local superuser
167 C<root>.
168
169 Do not combine the B<-cell> and B<-localauth> options. A command on which
170 the B<-localauth> flag is included always runs in the local cell (as
171 defined in the server machine's local F</usr/afs/etc/ThisCell> file),
172 whereas a command on which the B<-cell> argument is included runs in the
173 specified foreign cell. Also, do not combine the B<-localauth> and
174 B<-noauth> flags.
175
176 =item B<-noauth>
177
178 Establishes an unauthenticated connection to the BOS Server, in which the
179 BOS Server treats the issuer as the unprivileged user C<anonymous>. It is
180 useful only when authorization checking is disabled on the server machine
181 (during the installation of a file server machine or when the B<bos
182 setauth> command has been used during other unusual circumstances). In
183 normal circumstances, the BOS Server allows only privileged users to issue
184 commands that change the status of a server or configuration file, and
185 refuses to perform such an action even if the B<-noauth> flag is
186 provided. Do not combine the B<-noauth> and B<-localauth> flags.
187
188 =item B<-server> <I<machine name>>
189
190 Indicates the AFS server machine on which to run the command.  Identify
191 the machine by its IP address in dotted decimal format, its
192 fully-qualified host name (for example, C<fs1.example.com>), or by an
193 abbreviated form of its host name that distinguishes it from other
194 machines. Successful use of an abbreviated form depends on the
195 availability of a name service (such as the Domain Name Service or a local
196 host table) at the time the command is issued.
197
198 For the commands that alter the administrative files shared by all server
199 machines in the cell (the B<bos addhost>, B<bos addkey>, B<bos adduser>,
200 B<bos removehost>, B<bos removekey>, and B<bos removeuser> commands), the
201 appropriate machine depends on whether the cell uses the United States or
202 international version of AFS:
203
204 =over 4
205
206 =item *
207
208 If the cell (as recommended) uses the Update Server to distribute the
209 contents of the F</usr/afs/etc> directory, provide the name of the system
210 control machine. After issuing the command, allow up to five minutes for
211 the Update Server to distribute the changed file to the other AFS server
212 machines in the cell. If the specified machine is not the system control
213 machine but is running an B<upclient> process that refers to the system
214 control machine, then the change will be overwritten when the process next
215 brings over the relevant file from the system control machine.
216
217 =item *
218
219 Otherwise, repeatedly issue the command, naming each of the cell's server
220 machines in turn. To avoid possible inconsistency problems, finish issuing
221 the commands within a fairly short time.
222
223 =back
224
225 =back
226
227 =head1 PRIVILEGE REQUIRED
228
229 To issue any bos command that changes a configuration file or alters
230 process status, the issuer must be listed in the F</usr/afs/etc/UserList>
231 file on the server machine named by the B<-server>
232 argument. Alternatively, if the B<-localauth> flag is included the issuer
233 must be logged on as the local superuser C<root>.
234
235 To issue a bos command that only displays information (other than the
236 B<bos listkeys> command), no privilege is required.
237
238 =head1 SEE ALSO
239
240 L<BosConfig(5)>,
241 L<CellServDB(5)>,
242 L<KeyFile(5)>,
243 L<ThisCell(5)>,
244 L<UserList(5)>,
245 L<bos_addhost(8)>,
246 L<bos_addkey(8)>,
247 L<bos_adduser(8)>,
248 L<bos_apropos(8)>,
249 L<bos_create(8)>,
250 L<bos_delete(8)>,
251 L<bos_exec(8)>,
252 L<bos_getdate(8)>,
253 L<bos_getlog(8)>,
254 L<bos_getrestart(8)>,
255 L<bos_getrestricted(8)>,
256 L<bos_help(8)>,
257 L<bos_install(8)>,
258 L<bos_listhosts(8)>,
259 L<bos_listkeys(8)>,
260 L<bos_listusers(8)>,
261 L<bos_prune(8)>,
262 L<bos_removehost(8)>,
263 L<bos_removekey(8)>,
264 L<bos_removeuser(8)>,
265 L<bos_restart(8)>,
266 L<bos_salvage(8)>,
267 L<bos_setauth(8)>,
268 L<bos_setcellname(8)>,
269 L<bos_setrestart(8)>,
270 L<bos_setrestricted(8)>,
271 L<bos_shutdown(8)>,
272 L<bos_start(8)>,
273 L<bos_startup(8)>,
274 L<bos_status(8)>,
275 L<bos_stop(8)>,
276 L<bos_uninstall(8)>
277
278 =head1 COPYRIGHT
279
280 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
281
282 This documentation is covered by the IBM Public License Version 1.0.  It was
283 converted from HTML to POD by software written by Chas Williams and Russ
284 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.