openafs/doc/html/AdminReference/auarf117.htm

159 lines
8.6 KiB
HTML
Raw Normal View History

<!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="auarf116.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="auarf118.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_SETRESTART" HREF="auarf002.htm#ToC_131">bos setrestart</A></H2>
<A NAME="IDX4630"></A>
<A NAME="IDX4631"></A>
<A NAME="IDX4632"></A>
<A NAME="IDX4633"></A>
<A NAME="IDX4634"></A>
<A NAME="IDX4635"></A>
<P><STRONG>Purpose</STRONG>
<P>Sets the date and time at which the BOS Server restarts processes
<P><STRONG>Synopsis</STRONG>
<PRE><B>bos setrestart -server</B> &lt;<VAR>machine&nbsp;name</VAR>> <B>-time</B> &lt;<VAR>time&nbsp;to&nbsp;restart&nbsp;server</VAR>>
[<B>-general</B>] [<B>-newbinary</B>] [<B>-cell</B> &lt;<VAR>cell&nbsp;name</VAR>>]
[<B>-noauth</B>] [<B>-localauth</B>] [<B>-help</B>]
<B>bos setr -s</B> &lt;<VAR>machine&nbsp;name</VAR>> <B>-t</B> &lt;<VAR>time&nbsp;to&nbsp;restart&nbsp;server</VAR>> [<B>-g</B>] [<B>-ne</B>]
[<B>-c</B> &lt;<VAR>cell&nbsp;name</VAR>>] [<B>-no</B>] [<B>-l</B>] [<B>-h</B>]
</PRE>
<P><STRONG>Description</STRONG>
<P>The <B>bos setrestart</B> command records in the
<B>/usr/afs/local/BosConfig</B> file the times at which the BOS Server
running on the server machine named by the <B>-server</B> argument
performs two types of restarts:
<UL>
<P><LI>A <I>general restart</I>. By default, once per week the BOS
Server restarts itself and then any AFS process marked with the <TT>Run</TT>
status flag in the <B>BosConfig</B> file (equivalent in effect to issuing
the <B>bos restart</B> command with the <B>-bosserver</B>
flag). The default setting is 4:00 a.m. each Sunday
morning.
<P><LI>A <I>binary restart</I>. By default, once per day the BOS
Server restarts any currently running process for which the timestamp on the
binary file in the <B>/usr/afs/bin</B> directory is later than the time
the process last started or restarted. The default is 5:00
a.m. each day.
</UL>
<P><STRONG>Cautions</STRONG>
<P>Restarting a process makes it unavailable for a period of time. The
<B>fs</B> process has potentially the longest outage, depending on how
many volumes the file server machine houses (the File Server and Volume Server
reattach each volume when they restart). The default settings are
designed to coincide with periods of low usage, so that the restarts disturb
the smallest possible number of users.
<P>If the setting specified with the <B>-time</B> argument is within one
hour of the current time, the BOS Server does not restart any processes until
the next applicable opportunity (the next day for binary restarts, or the next
week for general restarts).
<P>The command changes only one type of restart setting at a time; issue
the command twice to change both settings.
<P><STRONG>Options</STRONG>
<DL>
<P><DT><B>-server
</B><DD>Indicates the server machine on which to set a new restart time.
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>-time
</B><DD>Specifies the restart time. By convention the general restart is
defined as weekly (specifies both a day and a time), and the binary restart is
defined as daily (specifies only a time). However, it is acceptable to
define a daily general restart or weekly binary restart.
<P>There are four acceptable values for either type of restart setting:
<UL>
<P><LI>The string <B>never</B>, which directs the BOS Server never to perform
the indicated type of restart.
<P><LI>The string <B>now</B>, which directs the BOS Server to perform the
restart immediately and never again.
<P><LI>A time of day (the conventional type of value for the binary restart
time). Separate the hours and minutes with a colon
(<I>hh</I>:<I>MM</I>), and use either 24-hour format, or a value
in the range from <B>1:00</B> through <B>12:59</B> with
the addition of <B>am</B> or <B>pm</B>. For example, both
<B>14:30</B> and <B>"2:30 pm"</B> indicate 2:30 in
the afternoon. Surround this parameter with double quotes (<B>"
"</B>) if it contains a space.
<P><LI>A day of the week and time of day, separated by a space and surrounded
with double quotes (<B>" "</B>). This is the conventional type of
value for the general restart. For the day, provide either the whole
name or the first three letters, all in lowercase letters (<B>sunday</B>
or <B>sun</B>, <B>thursday</B> or <B>thu</B>, and so on).
For the time, use the same format as when specifying the time alone.
</UL>
<P>If desired, precede a time or day and time definition with the string
<B>every</B> or <B>at</B>. These words do not change the
meaning, but possibly make the output of the <B>bos getrestart</B> command
easier to understand.
<P><DT><B><B>-general</B>
</B><DD>Sets the general restart time.
<P><DT><B><B>-newbinary</B>
</B><DD>Sets the binary restart time.
<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 command sets the general restart time on the machine
<B>fs4.abc.com</B> to Saturday at 3:30 am.
<PRE> % <B>bos setrestart -server fs4.abc.com -time "sat 3:30" -general</B>
</PRE>
<P>The following command sets the binary restart time on the machine
<B>fs6.abc.com</B> to 11:45 pm.
<PRE> % <B>bos setrestart -server fs6.abc.com -time 23:45 -newbinary</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="auarf016.htm#HDRBOSCONFIG">BosConfig</A>
<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="auarf103.htm#HDRBOS_GETRESTART">bos getrestart</A>
<P><A HREF="auarf113.htm#HDRBOS_RESTART">bos restart</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="auarf116.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="auarf118.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>