afs-blacklist-initialize-volume-ptr-always-20080628
[openafs.git] / src / WINNT / doc / install / Documentation / en_US / html / CmdRef / auarf109.htm
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3//EN">
2 <HTML><HEAD>
3 <TITLE>Administration Reference</TITLE>
4 <!-- Begin Header Records  ========================================== -->
5 <!-- /tmp/idwt3190/auarf000.scr converted by idb2h R4.2 (359) ID      -->
6 <!-- Workbench Version (AIX) on 5 Nov 1999 at 13:58:29                -->
7 <META HTTP-EQUIV="updated" CONTENT="Fri, 05 Nov 1999 13:58:29">
8 <META HTTP-EQUIV="review" CONTENT="Sun, 05 Nov 2000 13:58:29">
9 <META HTTP-EQUIV="expires" CONTENT="Mon, 05 Nov 2001 13:58:29">
10 </HEAD><BODY>
11 <!-- (C) IBM Corporation 2000. All Rights Reserved    --> 
12 <BODY bgcolor="ffffff"> 
13 <!-- End Header Records  ============================================ -->
14 <A NAME="Top_Of_Page"></A>
15 <H1>Administration Reference</H1>
16 <HR><P ALIGN="center"> <A HREF="../index.htm"><IMG SRC="../books.gif" BORDER="0" ALT="[Return to Library]"></A> <A HREF="auarf002.htm#ToC"><IMG SRC="../toc.gif" BORDER="0" ALT="[Contents]"></A> <A HREF="auarf108.htm"><IMG SRC="../prev.gif" BORDER="0" ALT="[Previous Topic]"></A> <A HREF="#Bot_Of_Page"><IMG SRC="../bot.gif" BORDER="0" ALT="[Bottom of Topic]"></A> <A HREF="auarf110.htm"><IMG SRC="../next.gif" BORDER="0" ALT="[Next Topic]"></A> <A HREF="auarf284.htm#HDRINDEX"><IMG SRC="../index.gif" BORDER="0" ALT="[Index]"></A> <P> 
17 <P>
18 <H2><A NAME="HDRBOS_PRUNE" HREF="auarf002.htm#ToC_123">bos prune</A></H2>
19 <A NAME="IDX4575"></A>
20 <A NAME="IDX4576"></A>
21 <A NAME="IDX4577"></A>
22 <A NAME="IDX4578"></A>
23 <A NAME="IDX4579"></A>
24 <A NAME="IDX4580"></A>
25 <A NAME="IDX4581"></A>
26 <A NAME="IDX4582"></A>
27 <A NAME="IDX4583"></A>
28 <A NAME="IDX4584"></A>
29 <A NAME="IDX4585"></A>
30 <A NAME="IDX4586"></A>
31 <A NAME="IDX4587"></A>
32 <P><STRONG>Purpose</STRONG>
33 <P>Removes obsolete versions of files from the <B>/usr/afs/bin</B> and
34 <B>/usr/afs/logs</B> directories
35 <P><STRONG>Synopsis</STRONG>
36 <PRE><B>bos prune -server</B> &lt;<VAR>machine&nbsp;name</VAR>>  [<B>-bak</B>]  [<B>-old</B>]  [<B>-core</B>]  [<B>-all</B>]
37           [<B>-cell</B> &lt;<VAR>cell&nbsp;name</VAR>>]  [<B>-noauth</B>]  [<B>-localauth</B>]  [<B>-help</B>]
38    
39 <B>bos p -s</B> &lt;<VAR>machine&nbsp;name</VAR>>  [<B>-b</B>]  [<B>-o</B>]  [<B>-co</B>]  [<B>-a</B>]  
40       [<B>-ce</B> &lt;<VAR>cell&nbsp;name</VAR>>]  [<B>-n</B>]  [<B>-l</B>]  [<B>-h</B>]
41 </PRE>
42 <P><STRONG>Description</STRONG>
43 <P>The <B>bos prune</B> command removes files from the local disk of the
44 server machine named by the <B>-server</B> argument, as specified by one
45 or more of the following flags provided on the command line&#58;
46 <UL>
47 <P><LI>The <B>-bak</B> flag removes all files from the
48 <B>/usr/afs/bin</B> directory that have a <TT>.BAK</TT>
49 extension.
50 <P><LI>The <B>-old</B> flag removes all files from the
51 <B>/usr/afs/bin</B> directory that have a <TT>.OLD</TT>
52 extension.
53 <P><LI>The <B>-core</B> flag removes all files from the
54 <B>/usr/afs/logs</B> directory that have a <TT>core.</TT>
55 prefix.
56 <P><LI>The <B>-all</B> flag removes all three types of files at once.
57 </UL>
58 <P>(If none of these flags are included, the command appears to succeed, but
59 removes no files at all.)
60 <P>To display the timestamp on the current, <TT>.BAK</TT>, and
61 <TT>.OLD</TT> versions of one or more files, use the <B>bos
62 getdate</B> command.
63 <P><STRONG>Options</STRONG>
64 <DL>
65 <P><DT><B><B>-server</B>
66 </B><DD>Indicates the server machine from which to remove files. Identify
67 the machine by IP address or its host name (either fully-qualified or
68 abbreviated unambiguously). For details, see the introductory reference
69 page for the <B>bos</B> command suite.
70 <P><DT><B><B>-bak</B>
71 </B><DD>Removes all files from the <B>/usr/afs/bin</B> directory that have a
72 <TT>.BAK</TT> extension. Do not combine this flag and the
73 <B>-all</B> flag.
74 <P><DT><B><B>-old</B>
75 </B><DD>Removes all files from the <B>/usr/afs/bin</B> directory that have a
76 <TT>.OLD</TT> extension. Do not combine this flag and the
77 <B>-all</B> flag.
78 <P><DT><B><B>-core</B>
79 </B><DD>Removes all files from the <B>/usr/afs/logs</B> directory that have a
80 <TT>core.</TT> prefix. Do not combine this flag and the
81 <B>-all</B> flag.
82 <P><DT><B><B>-all</B>
83 </B><DD>Combines the effect of the <B>-bak</B>, <B>-old</B>, and
84 <B>-core</B> flags. Do not combine this flag with any of those
85 three.
86 <P><DT><B><B>-cell</B>
87 </B><DD>Names the cell in which to run the command. Do not combine this
88 argument with the <B>-localauth</B> flag. For more details, see the
89 introductory <B>bos</B> reference page.
90 <P><DT><B><B>-noauth</B>
91 </B><DD>Assigns the unprivileged identity <B>anonymous</B> to the
92 issuer. Do not combine this flag with the <B>-localauth</B>
93 flag. For more details, see the introductory <B>bos</B> reference
94 page.
95 <P><DT><B><B>-localauth</B>
96 </B><DD>Constructs a server ticket using a key from the local
97 <B>/usr/afs/etc/KeyFile</B> file. The <B>bos</B> command
98 interpreter presents the ticket to the BOS Server during mutual
99 authentication. Do not combine this flag with the <B>-cell</B> or
100 <B>-noauth</B> options. For more details, see the introductory
101 <B>bos</B> reference page.
102 <P><DT><B>-help
103 </B><DD>Prints the online help for this command. All other valid options
104 are ignored.
105 </DL>
106 <P><STRONG>Examples</STRONG>
107 <P>The following example removes all files from the <B>/usr/afs/bin</B>
108 directory on the machine <B>fs3.abc.com</B> that have a
109 <TT>.BAK</TT> or <TT>.OLD</TT> extension.
110 <PRE>   % <B>bos prune -server fs3.abc.com -bak -old</B>
111     
112 </PRE>
113 <P>The following example removes all files from the <B>/usr/afs/bin</B>
114 directory on the machine <B>db2.abc.com</B> that have a
115 <TT>.BAK</TT> or <TT>.OLD</TT> extension, and all files from
116 the <B>/usr/afs/logs</B> directory that have a <TT>core.</TT>
117 prefix.
118 <PRE>   % <B>bos prune -server db2.abc.com -all</B>
119     
120 </PRE>
121 <P><STRONG>Privilege Required</STRONG>
122 <P>The issuer must be listed in the <B>/usr/afs/etc/UserList</B> file on
123 the machine named by the <B>-server</B> argument, or must be logged onto a
124 server machine as the local superuser <B>root</B> if the
125 <B>-localauth</B> flag is included.
126 <P><STRONG>Related Information</STRONG>
127 <P><A HREF="auarf023.htm#HDRKEYFILE">KeyFile</A>
128 <P><A HREF="auarf035.htm#HDRUSERLIST">UserList</A>
129 <P><A HREF="auarf093.htm#HDRBOS_INTRO">bos</A>
130 <P><A HREF="auarf101.htm#HDRBOS_GETDATE">bos getdate</A>
131 <P>
132 <HR><P ALIGN="center"> <A HREF="../index.htm"><IMG SRC="../books.gif" BORDER="0" ALT="[Return to Library]"></A> <A HREF="auarf002.htm#ToC"><IMG SRC="../toc.gif" BORDER="0" ALT="[Contents]"></A> <A HREF="auarf108.htm"><IMG SRC="../prev.gif" BORDER="0" ALT="[Previous Topic]"></A> <A HREF="#Top_Of_Page"><IMG SRC="../top.gif" BORDER="0" ALT="[Top of Topic]"></A> <A HREF="auarf110.htm"><IMG SRC="../next.gif" BORDER="0" ALT="[Next Topic]"></A> <A HREF="auarf284.htm#HDRINDEX"><IMG SRC="../index.gif" BORDER="0" ALT="[Index]"></A> <P> 
133 <!-- Begin Footer Records  ========================================== -->
134 <P><HR><B> 
135 <br>&#169; <A HREF="http://www.ibm.com/">IBM Corporation 2000.</A>  All Rights Reserved 
136 </B> 
137 <!-- End Footer Records  ============================================ -->
138 <A NAME="Bot_Of_Page"></A>
139 </BODY></HTML>