1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry id="bos_prune8">
4 <refentrytitle>bos prune</refentrytitle>
5 <manvolnum>8</manvolnum>
8 <refname>bos prune</refname>
9 <refpurpose>Removes obsolete files from /usr/afs/bin and /usr/afs/logs</refpurpose>
12 <title>Synopsis</title>
13 <para><emphasis role="bold">bos prune</emphasis> <emphasis role="bold">-server</emphasis> <<emphasis>machine name</emphasis>> [<emphasis role="bold">-bak</emphasis>] [<emphasis role="bold">-old</emphasis>] [<emphasis role="bold">-core</emphasis>]
14 [<emphasis role="bold">-all</emphasis>] [<emphasis role="bold">-cell</emphasis> <<emphasis>cell name</emphasis>>] [<emphasis role="bold">-noauth</emphasis>] [<emphasis role="bold">-localauth</emphasis>]
15 [<emphasis role="bold">-help</emphasis>]</para>
17 <para><emphasis role="bold">bos p</emphasis> <emphasis role="bold">-s</emphasis> <<emphasis>machine name</emphasis>> [<emphasis role="bold">-b</emphasis>] [<emphasis role="bold">-o</emphasis>] [<emphasis role="bold">-co</emphasis>] [<emphasis role="bold">-a</emphasis>]
18 [<emphasis role="bold">-ce</emphasis> <<emphasis>cell name</emphasis>>] [<emphasis role="bold">-n</emphasis>] [<emphasis role="bold">-l</emphasis>] [<emphasis role="bold">-h</emphasis>]</para>
22 <title>Description</title>
23 <para>The <emphasis role="bold">bos prune</emphasis> command removes files from the local disk of the server
24 machine named by the <emphasis role="bold">-server</emphasis> argument, as specified by one or more of
25 the following flags provided on the command line:</para>
29 <para>The <emphasis role="bold">-bak</emphasis> flag removes all files from the <replaceable>/usr/afs/bin</replaceable> directory that
30 have a <computeroutput>.BAK</computeroutput> extension.</para>
34 <para>The <emphasis role="bold">-old</emphasis> flag removes all files from the <replaceable>/usr/afs/bin</replaceable> directory that
35 have a <computeroutput>.OLD</computeroutput> extension.</para>
39 <para>The <emphasis role="bold">-core</emphasis> flag removes all files from the <replaceable>/usr/afs/logs</replaceable> directory
40 that have a <computeroutput>core.</computeroutput> prefix.</para>
44 <para>The <emphasis role="bold">-all</emphasis> flag removes all three types of files at once.</para>
48 <para>(If none of these flags are included, the command appears to succeed, but
49 removes no files at all.)</para>
51 <para>To display the timestamp on the current, <computeroutput>.BAK</computeroutput>, and <computeroutput>.OLD</computeroutput> versions of
52 one or more files, use the <emphasis role="bold">bos getdate</emphasis> command.</para>
56 <title>Options</title>
59 <term><emphasis role="bold">-server</emphasis> <<emphasis>machine name</emphasis>></term>
61 <para>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 <link linkend="bos8">bos(8)</link>.</para>
68 <term><emphasis role="bold">-bak</emphasis></term>
70 <para>Removes all files from the <replaceable>/usr/afs/bin</replaceable> directory that have a <computeroutput>.BAK</computeroutput>
71 extension. Do not combine this flag and the <emphasis role="bold">-all</emphasis> flag.</para>
76 <term><emphasis role="bold">-old</emphasis></term>
78 <para>Removes all files from the <replaceable>/usr/afs/bin</replaceable> directory that have a <computeroutput>.OLD</computeroutput>
79 extension. Do not combine this flag and the <emphasis role="bold">-all</emphasis> flag.</para>
84 <term><emphasis role="bold">-core</emphasis></term>
86 <para>Removes all files from the <replaceable>/usr/afs/logs</replaceable> directory that have a <computeroutput>core.</computeroutput>
87 prefix. Do not combine this flag and the <emphasis role="bold">-all</emphasis> flag.</para>
92 <term><emphasis role="bold">-all</emphasis></term>
94 <para>Combines the effect of the <emphasis role="bold">-bak</emphasis>, <emphasis role="bold">-old</emphasis>, and <emphasis role="bold">-core</emphasis> flags. Do not
95 combine this flag with any of those three.</para>
100 <term><emphasis role="bold">-cell</emphasis> <<emphasis>cell name</emphasis>></term>
102 <para>Names the cell in which to run the command. Do not combine this argument
103 with the <emphasis role="bold">-localauth</emphasis> flag. For more details, see <link linkend="bos8">bos(8)</link>.</para>
108 <term><emphasis role="bold">-noauth</emphasis></term>
110 <para>Assigns the unprivileged identity <computeroutput>anonymous</computeroutput> to the issuer. Do not
111 combine this flag with the <emphasis role="bold">-localauth</emphasis> flag. For more details, see
112 <link linkend="bos8">bos(8)</link>.</para>
117 <term><emphasis role="bold">-localauth</emphasis></term>
119 <para>Constructs a server ticket using a key from the local
120 <replaceable>/usr/afs/etc/KeyFile</replaceable> file. The <emphasis role="bold">bos</emphasis> command interpreter presents the
121 ticket to the BOS Server during mutual authentication. Do not combine this
122 flag with the <emphasis role="bold">-cell</emphasis> or <emphasis role="bold">-noauth</emphasis> options. For more details, see
123 <link linkend="bos8">bos(8)</link>.</para>
128 <term><emphasis role="bold">-help</emphasis></term>
130 <para>Prints the online help for this command. All other valid options are
138 <title>Examples</title>
139 <para>The following example removes all files from the <replaceable>/usr/afs/bin</replaceable> directory
140 on the machine <computeroutput>fs3.abc.com</computeroutput> that have a <computeroutput>.BAK</computeroutput> or <computeroutput>.OLD</computeroutput> extension.</para>
143 % bos prune -server fs3.abc.com -bak -old
146 <para>The following example removes all files from the <replaceable>/usr/afs/bin</replaceable> directory
147 on the machine <computeroutput>db2.abc.com</computeroutput> that have a <computeroutput>.BAK</computeroutput> or <computeroutput>.OLD</computeroutput> extension,
148 and all files from the <replaceable>/usr/afs/logs</replaceable> directory that have a <computeroutput>core.</computeroutput>
152 % bos prune -server db2.abc.com -all
157 <title>Privilege Required</title>
158 <para>The issuer must be listed in the <replaceable>/usr/afs/etc/UserList</replaceable> file on the
159 machine named by the <emphasis role="bold">-server</emphasis> argument, or must be logged onto a server
160 machine as the local superuser <computeroutput>root</computeroutput> if the <emphasis role="bold">-localauth</emphasis> flag is
165 <title>See Also</title>
166 <para><link linkend="KeyFile5">KeyFile(5)</link>,
167 <link linkend="UserList5">UserList(5)</link>,
168 <link linkend="bos8">bos(8)</link>,
169 <link linkend="bos_getdate8">bos_getdate(8)</link></para>
173 <title>Copyright</title>
174 <para>IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.</para>
176 <para>This documentation is covered by the IBM Public License Version 1.0. It was
177 converted from HTML to POD by software written by Chas Williams and Russ
178 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.</para>