man-page-fileserver-update-20080311
[openafs.git] / doc / xml / AdminReference / sect8 / bos_getdate.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry id="bos_getdate8">
3   <refmeta>
4     <refentrytitle>bos getdate</refentrytitle>
5     <manvolnum>8</manvolnum>
6   </refmeta>
7   <refnamediv>
8     <refname>bos getdate</refname>
9     <refpurpose>Displays the time stamps on an AFS binary file</refpurpose>
10   </refnamediv>
11   <refsect1>
12     <title>Synopsis</title>
13     <para><emphasis role="bold">bos getdate</emphasis> <emphasis role="bold">-server</emphasis> &lt;<emphasis>machine name</emphasis>&gt; <emphasis role="bold">-file</emphasis> &lt;<emphasis>files to check</emphasis>&gt;+
14         [<emphasis role="bold">-dir</emphasis> &lt;<emphasis>destination dir</emphasis>&gt;] [<emphasis role="bold">-cell</emphasis> &lt;<emphasis>cell name</emphasis>&gt;]
15         [<emphasis role="bold">-noauth</emphasis>] [<emphasis role="bold">-localauth</emphasis>] [<emphasis role="bold">-help</emphasis>]</para>
16
17     <para><emphasis role="bold">bos getd</emphasis> <emphasis role="bold">-s</emphasis> &lt;<emphasis>machine name</emphasis>&gt; <emphasis role="bold">-f</emphasis> &lt;<emphasis>files to check</emphasis>&gt;+
18         [<emphasis role="bold">-d</emphasis> &lt;<emphasis>destination dir</emphasis>&gt;] [<emphasis role="bold">-c</emphasis> &lt;<emphasis>cell name</emphasis>&gt;] [<emphasis role="bold">-n</emphasis>] [<emphasis role="bold">-l</emphasis>]
19         [<emphasis role="bold">-h</emphasis>]</para>
20
21   </refsect1>
22   <refsect1>
23     <title>Description</title>
24     <para>The <emphasis role="bold">bos getdate</emphasis> command displays the time stamps on the current
25     version,<computeroutput> .BAK</computeroutput> version (if any) and <computeroutput>.OLD</computeroutput> version (if any) of each
26     binary file named by the <emphasis role="bold">-file</emphasis> argument. (The BOS Server automatically
27     creates <computeroutput>.BAK</computeroutput> and <computeroutput>.OLD</computeroutput> versions when new binaries are installed with
28     the <emphasis role="bold">bos install</emphasis> command.) The files must reside in the <replaceable>/usr/afs/bin</replaceable>
29     directory on the server machine named by the <emphasis role="bold">-server</emphasis> argument unless
30     the <emphasis role="bold">-dir</emphasis> argument indicates an alternate directory.</para>
31
32     <para>To revert to the <computeroutput>.BAK</computeroutput> version of a binary, use the <emphasis role="bold">bos uninstall</emphasis>
33     command. To remove obsolete binary files from the <replaceable>/usr/afs/bin</replaceable>
34     directory, use the <emphasis role="bold">bos prune</emphasis> command.</para>
35
36   </refsect1>
37   <refsect1>
38     <title>Options</title>
39     <variablelist>
40       <varlistentry>
41         <term><emphasis role="bold">-server</emphasis> &lt;<emphasis>machine name</emphasis>&gt;</term>
42         <listitem>
43           <para>Indicates the server machine from which to list binary files.  Identify
44           the machine by IP address or its host name (either fully-qualified or
45           abbreviated unambiguously). For details, see <link linkend="bos8">bos(8)</link>.</para>
46
47           <para>All server machines of the same AFS system type show the same timestamps
48           if the binaries were installed properly on the binary distribution machine
49           for this machine's system type, and if all other machines of that type are
50           running the appropriate <computeroutput>upclientbin</computeroutput> process.</para>
51
52         </listitem>
53       </varlistentry>
54       <varlistentry>
55         <term><emphasis role="bold">-file</emphasis> &lt;<emphasis>files to check</emphasis>&gt;+</term>
56         <listitem>
57           <para>Names each binary file to list.</para>
58
59         </listitem>
60       </varlistentry>
61       <varlistentry>
62         <term><emphasis role="bold">-dir</emphasis> &lt;<emphasis>destination dir</emphasis>&gt;</term>
63         <listitem>
64           <para>Specifies the complete pathname of the local disk directory containing
65           each file named by the <emphasis role="bold">-file</emphasis> argument. It is necessary only if the
66           files are not in the <replaceable>/usr/afs/bin</replaceable> directory.</para>
67
68         </listitem>
69       </varlistentry>
70       <varlistentry>
71         <term><emphasis role="bold">-cell</emphasis> &lt;<emphasis>cell name</emphasis>&gt;</term>
72         <listitem>
73           <para>Names the cell in which to run the command. Do not combine this argument
74           with the <emphasis role="bold">-localauth</emphasis> flag. For more details, see <link linkend="bos8">bos(8)</link>.</para>
75
76         </listitem>
77       </varlistentry>
78       <varlistentry>
79         <term><emphasis role="bold">-noauth</emphasis></term>
80         <listitem>
81           <para>Assigns the unprivileged identity <computeroutput>anonymous</computeroutput> to the issuer. Do not
82           combine this flag with the <emphasis role="bold">-localauth</emphasis> flag. For more details, see
83           <link linkend="bos8">bos(8)</link>.</para>
84
85         </listitem>
86       </varlistentry>
87       <varlistentry>
88         <term><emphasis role="bold">-localauth</emphasis></term>
89         <listitem>
90           <para>Constructs a server ticket using a key from the local
91           <replaceable>/usr/afs/etc/KeyFile</replaceable> file. The <emphasis role="bold">bos</emphasis> command interpreter presents the
92           ticket to the BOS Server during mutual authentication. Do not combine this
93           flag with the <emphasis role="bold">-cell</emphasis> or <emphasis role="bold">-noauth</emphasis> options. For more details, see
94           <link linkend="bos8">bos(8)</link>.</para>
95
96         </listitem>
97       </varlistentry>
98       <varlistentry>
99         <term><emphasis role="bold">-help</emphasis></term>
100         <listitem>
101           <para>Prints the online help for this command. All other valid options are
102           ignored.</para>
103
104         </listitem>
105       </varlistentry>
106     </variablelist>
107   </refsect1>
108   <refsect1>
109     <title>Output</title>
110     <para>For each file specified with the -file argument, the output displays the
111     time stamp on the current (unmarked), <computeroutput>.BAK</computeroutput>, and <computeroutput>.OLD</computeroutput> version. The
112     output explicitly reports that a version does not exist, rather than
113     simply omitting it.</para>
114
115   </refsect1>
116   <refsect1>
117     <title>Examples</title>
118     <para>The following command examines the time stamps on the files with basename
119     <computeroutput>kaserver</computeroutput> on the machine <computeroutput>fs2.abc.com</computeroutput>:</para>
120
121 <programlisting>
122    % bos getdate -server fs2.abc.com -file kaserver
123    File /usr/afs/bin/kaserver dated Mon Jan 4 10:00:36 1999.
124    .BAK file dated Wed Dec 9 18:55:04 1998, no .OLD file.
125
126 </programlisting>
127     </refsect1>
128     <refsect1>
129       <title>Privilege Required</title>
130       <para>None</para>
131
132     </refsect1>
133     <refsect1>
134       <title>See Also</title>
135       <para><link linkend="KeyFile5">KeyFile(5)</link>,
136       <link linkend="bos8">bos(8)</link>,
137       <link linkend="bos_install8">bos_install(8)</link>,
138       <link linkend="bos_prune8">bos_prune(8)</link>,
139       <link linkend="bos_uninstall8">bos_uninstall(8)</link></para>
140
141     </refsect1>
142     <refsect1>
143       <title>Copyright</title>
144       <para>IBM Corporation 2000. &lt;http://www.ibm.com/&gt; All Rights Reserved.</para>
145
146       <para>This documentation is covered by the IBM Public License Version 1.0.  It was
147       converted from HTML to POD by software written by Chas Williams and Russ
148       Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.</para>
149
150     </refsect1>
151   </refentry>