openafs/doc/html/AdminReference/auarf109.htm
Derrick Brashear d7da1acc31 initial-html-documentation-20010606
pull in all documentation from IBM
2001-06-06 19:09:07 +00:00

140 lines
6.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4//EN">
<HTML><HEAD>
<TITLE>Administration Reference</TITLE>
<!-- Begin Header Records ========================================== -->
<!-- /tmp/idwt3672/auarf000.scr converted by idb2h R4.2 (359) ID -->
<!-- Workbench Version (AIX) on 3 Oct 2000 at 16:18:30 -->
<META HTTP-EQUIV="updated" CONTENT="Tue, 03 Oct 2000 16:18:29">
<META HTTP-EQUIV="review" CONTENT="Wed, 03 Oct 2001 16:18:29">
<META HTTP-EQUIV="expires" CONTENT="Thu, 03 Oct 2002 16:18:29">
</HEAD><BODY>
<!-- (C) IBM Corporation 2000. All Rights Reserved -->
<BODY bgcolor="ffffff">
<!-- End Header Records ============================================ -->
<A NAME="Top_Of_Page"></A>
<H1>Administration Reference</H1>
<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>
<P>
<H2><A NAME="HDRBOS_PRUNE" HREF="auarf002.htm#ToC_123">bos prune</A></H2>
<A NAME="IDX4575"></A>
<A NAME="IDX4576"></A>
<A NAME="IDX4577"></A>
<A NAME="IDX4578"></A>
<A NAME="IDX4579"></A>
<A NAME="IDX4580"></A>
<A NAME="IDX4581"></A>
<A NAME="IDX4582"></A>
<A NAME="IDX4583"></A>
<A NAME="IDX4584"></A>
<A NAME="IDX4585"></A>
<A NAME="IDX4586"></A>
<A NAME="IDX4587"></A>
<P><STRONG>Purpose</STRONG>
<P>Removes obsolete versions of files from the <B>/usr/afs/bin</B> and
<B>/usr/afs/logs</B> directories
<P><STRONG>Synopsis</STRONG>
<PRE><B>bos prune -server</B> &lt;<VAR>machine&nbsp;name</VAR>> [<B>-bak</B>] [<B>-old</B>] [<B>-core</B>] [<B>-all</B>]
[<B>-cell</B> &lt;<VAR>cell&nbsp;name</VAR>>] [<B>-noauth</B>] [<B>-localauth</B>] [<B>-help</B>]
<B>bos p -s</B> &lt;<VAR>machine&nbsp;name</VAR>> [<B>-b</B>] [<B>-o</B>] [<B>-co</B>] [<B>-a</B>]
[<B>-ce</B> &lt;<VAR>cell&nbsp;name</VAR>>] [<B>-n</B>] [<B>-l</B>] [<B>-h</B>]
</PRE>
<P><STRONG>Description</STRONG>
<P>The <B>bos prune</B> command removes files from the local disk of the
server machine named by the <B>-server</B> argument, as specified by one
or more of the following flags provided on the command line:
<UL>
<P><LI>The <B>-bak</B> flag removes all files from the
<B>/usr/afs/bin</B> directory that have a <TT>.BAK</TT>
extension.
<P><LI>The <B>-old</B> flag removes all files from the
<B>/usr/afs/bin</B> directory that have a <TT>.OLD</TT>
extension.
<P><LI>The <B>-core</B> flag removes all files from the
<B>/usr/afs/logs</B> directory that have a <TT>core.</TT>
prefix.
<P><LI>The <B>-all</B> flag removes all three types of files at once.
</UL>
<P>(If none of these flags are included, the command appears to succeed, but
removes no files at all.)
<P>To display the timestamp on the current, <TT>.BAK</TT>, and
<TT>.OLD</TT> versions of one or more files, use the <B>bos
getdate</B> command.
<P><STRONG>Options</STRONG>
<DL>
<P><DT><B><B>-server</B>
</B><DD>Indicates the server machine from which to remove files. Identify
the machine by IP address or its host name (either fully-qualified or
abbreviated unambiguously). For details, see the introductory reference
page for the <B>bos</B> command suite.
<P><DT><B><B>-bak</B>
</B><DD>Removes all files from the <B>/usr/afs/bin</B> directory that have a
<TT>.BAK</TT> extension. Do not combine this flag and the
<B>-all</B> flag.
<P><DT><B><B>-old</B>
</B><DD>Removes all files from the <B>/usr/afs/bin</B> directory that have a
<TT>.OLD</TT> extension. Do not combine this flag and the
<B>-all</B> flag.
<P><DT><B><B>-core</B>
</B><DD>Removes all files from the <B>/usr/afs/logs</B> directory that have a
<TT>core.</TT> prefix. Do not combine this flag and the
<B>-all</B> flag.
<P><DT><B><B>-all</B>
</B><DD>Combines the effect of the <B>-bak</B>, <B>-old</B>, and
<B>-core</B> flags. Do not combine this flag with any of those
three.
<P><DT><B><B>-cell</B>
</B><DD>Names the cell in which to run the command. Do not combine this
argument with the <B>-localauth</B> flag. For more details, see the
introductory <B>bos</B> reference page.
<P><DT><B><B>-noauth</B>
</B><DD>Assigns the unprivileged identity <B>anonymous</B> to the
issuer. Do not combine this flag with the <B>-localauth</B>
flag. For more details, see the introductory <B>bos</B> reference
page.
<P><DT><B><B>-localauth</B>
</B><DD>Constructs a server ticket using a key from the local
<B>/usr/afs/etc/KeyFile</B> file. The <B>bos</B> command
interpreter presents the ticket to the BOS Server during mutual
authentication. Do not combine this flag with the <B>-cell</B> or
<B>-noauth</B> options. For more details, see the introductory
<B>bos</B> reference page.
<P><DT><B>-help
</B><DD>Prints the online help for this command. All other valid options
are ignored.
</DL>
<P><STRONG>Examples</STRONG>
<P>The following example removes all files from the <B>/usr/afs/bin</B>
directory on the machine <B>fs3.abc.com</B> that have a
<TT>.BAK</TT> or <TT>.OLD</TT> extension.
<PRE> % <B>bos prune -server fs3.abc.com -bak -old</B>
</PRE>
<P>The following example removes all files from the <B>/usr/afs/bin</B>
directory on the machine <B>db2.abc.com</B> that have a
<TT>.BAK</TT> or <TT>.OLD</TT> extension, and all files from
the <B>/usr/afs/logs</B> directory that have a <TT>core.</TT>
prefix.
<PRE> % <B>bos prune -server db2.abc.com -all</B>
</PRE>
<P><STRONG>Privilege Required</STRONG>
<P>The issuer must be listed in the <B>/usr/afs/etc/UserList</B> file on
the machine named by the <B>-server</B> argument, or must be logged onto a
server machine as the local superuser <B>root</B> if the
<B>-localauth</B> flag is included.
<P><STRONG>Related Information</STRONG>
<P><A HREF="auarf023.htm#HDRKEYFILE">KeyFile</A>
<P><A HREF="auarf035.htm#HDRUSERLIST">UserList</A>
<P><A HREF="auarf093.htm#HDRBOS_INTRO">bos</A>
<P><A HREF="auarf101.htm#HDRBOS_GETDATE">bos getdate</A>
<P>
<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>
<!-- Begin Footer Records ========================================== -->
<P><HR><B>
<br>&#169; <A HREF="http://www.ibm.com/">IBM Corporation 2000.</A> All Rights Reserved
</B>
<!-- End Footer Records ============================================ -->
<A NAME="Bot_Of_Page"></A>
</BODY></HTML>