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> file. The B<bos> command interpreter presents the
100 ticket to the BOS Server during mutual authentication. Do not combine this
101 flag with the B<-cell> or B<-noauth> options. For more details, see
106 Prints the online help for this command. All other valid options are
113 The following example removes all files from the F</usr/afs/bin> directory
114 on the machine C<fs3.abc.com> that have a C<.BAK> or C<.OLD> extension.
116 % bos prune -server fs3.abc.com -bak -old
118 The following example removes all files from the F</usr/afs/bin> directory
119 on the machine C<db2.abc.com> that have a C<.BAK> or C<.OLD> extension,
120 and all files from the F</usr/afs/logs> directory that have a C<core.>
123 % bos prune -server db2.abc.com -all
125 =head1 PRIVILEGE REQUIRED
127 The issuer must be listed in the F</usr/afs/etc/UserList> file on the
128 machine named by the B<-server> argument, or must be logged onto a server
129 machine as the local superuser C<root> if the B<-localauth> flag is
141 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
143 This documentation is covered by the IBM Public License Version 1.0. It was
144 converted from HTML to POD by software written by Chas Williams and Russ
145 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.