3 bos_prune - Removes obsolete files from /usr/afs/bin and /usr/afs/logs
10 B<bos prune> S<<< B<-server> <I<machine name>> >>> [B<-bak>] [B<-old>] [B<-core>]
11 [B<-all>] S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>]
14 B<bos p> S<<< B<-s> <I<machine name>> >>> [B<-b>] [B<-o>] [B<-co>] [B<-a>]
15 S<<< [B<-ce> <I<cell name>>] >>> [B<-n>] [B<-l>] [B<-h>]
22 The B<bos prune> command removes files from the local disk of the server
23 machine named by the B<-server> argument, as specified by one or more of
24 the following flags provided on the command line:
30 The B<-bak> flag removes all files from the F</usr/afs/bin> directory that
31 have a C<.BAK> extension.
35 The B<-old> flag removes all files from the F</usr/afs/bin> directory that
36 have a C<.OLD> extension.
40 The B<-core> flag removes all files from the F</usr/afs/logs> directory
41 that have a C<core.> prefix.
45 The B<-all> flag removes all three types of files at once.
49 (If none of these flags are included, the command appears to succeed, but
50 removes no files at all.)
52 To display the timestamp on the current, C<.BAK>, and C<.OLD> versions of
53 one or more files, use the B<bos getdate> command.
59 =item B<-server> <I<machine name>>
61 Indicates the server machine from which to remove files. Identify the
62 machine by IP address or its host name (either fully-qualified or
63 abbreviated unambiguously). For details, see L<bos(8)>.
67 Removes all files from the F</usr/afs/bin> directory that have a C<.BAK>
68 extension. Do not combine this flag and the B<-all> flag.
72 Removes all files from the F</usr/afs/bin> directory that have a C<.OLD>
73 extension. Do not combine this flag and the B<-all> flag.
77 Removes all files from the F</usr/afs/logs> directory that have a C<core.>
78 prefix. Do not combine this flag and the B<-all> flag.
82 Combines the effect of the B<-bak>, B<-old>, and B<-core> flags. Do not
83 combine this flag with any of those three.
85 =item B<-cell> <I<cell name>>
87 Names the cell in which to run the command. Do not combine this argument
88 with the B<-localauth> flag. For more details, see L<bos(8)>.
92 Assigns the unprivileged identity C<anonymous> to the issuer. Do not
93 combine this flag with the B<-localauth> flag. For more details, see
98 Constructs a server ticket using a key from the local
99 F</usr/afs/etc/KeyFile> or F</usr/afs/etc/KeyFileExt> file.
100 The B<bos> command interpreter presents the
101 ticket to the BOS Server during mutual authentication. Do not combine this
102 flag with the B<-cell> or B<-noauth> options. For more details, see
107 Prints the online help for this command. All other valid options are
114 The following example removes all files from the F</usr/afs/bin> directory
115 on the machine C<fs3.example.com> that have a C<.BAK> or C<.OLD> extension.
117 % bos prune -server fs3.example.com -bak -old
119 The following example removes all files from the F</usr/afs/bin> directory
120 on the machine C<db2.example.com> that have a C<.BAK> or C<.OLD> extension,
121 and all files from the F</usr/afs/logs> directory that have a C<core.>
124 % bos prune -server db2.example.com -all
126 =head1 PRIVILEGE REQUIRED
128 The issuer must be listed in the F</usr/afs/etc/UserList> file on the
129 machine named by the B<-server> argument, or must be logged onto a server
130 machine as the local superuser C<root> if the B<-localauth> flag is
133 The B<bos prune> command cannot be run against servers which are in
146 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
148 This documentation is covered by the IBM Public License Version 1.0. It was
149 converted from HTML to POD by software written by Chas Williams and Russ
150 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.