Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / upclient.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3upclient - Initializes the client portion of the Update Server
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10S<<< B<upclient> <I<hostname>> >>> [B<-crypt>] [B<-clear>] S<<< [B<-t> <I<retry time>>] >>>
11 [B<-verbose>]* <I<dir>>+ [B<-help>]
12
13=for html
14</div>
15
16=head1 DESCRIPTION
17
18The upclient command initializes the client portion of the Update
19Server. In the conventional configuration, its binary file is located in
20the F</usr/afs/bin> directory on a file server machine.
21
22The upclient command is not normally issued at the command shell prompt
23but rather placed into a file server machine's F</usr/afs/local/BosConfig>
24file with the B<bos create> command. If it is ever issued at the command
25shell prompt, the issuer must be logged onto a database server machine as
26the local superuser C<root>.
27
28The upclient process periodically checks that all files in each local
29directory named by the I<dir> argument match the files in the
30corresponding directory on the source machine named by the I<hostname>
31argument. If a file does not match, the B<upclient> process requests the
32source copy from the B<upserver> process running on the source machine.
33
34By default, the B<upclient> process requests that the B<upserver> process
35encrypt the data before transferring it. Use the B<-clear> flag to
36request unencrypted transfer if appropriate. (The B<-crypt> flag
37explicitly sets the default.)
38
39In the conventional configuration, separate instances of the B<upclient>
40process request data from the F</usr/afs/bin> and F</usr/afs/etc>
41directories, except on machines for which the system control machine is
42also the binary distribution machine for the machine's system type. The
43conventional names for the separate instances are C<upclientbin> and
44C<upclientetc> respectively.
45
46The B<upclient> and B<upserver> processes always mutually authenticate,
47whether or not the data they pass is encrypted; they use the key with the
48highest key version number in the F</usr/afs/etc/KeyFile> file to
49construct a server ticket for mutual authentication.
50
51This command does not use the syntax conventions of the AFS command
52suites. Provide the command name and all option names in full.
53
54=head1 CAUTIONS
55
56Do not use the Update Server to distribute the contents of the
57F</usr/afs/etc> directory using the B<-clear> option. The contents of
58this directory are sensitive.
59
60=head1 OPTIONS
61
62=over 4
63
64=item <I<hostname>>
65
66Names either the cell's system control machine (if the requested directory
67is F</usr/afs/etc>), or the binary distribution machine for the local
68machine's CPU and operating system type (if the requested directory is
69F</usr/afs/bin>).
70
71=item B<-crypt>
72
73Requests the transfer of data from the upserver process in encrypted
74form. This is the default; this flag just sets the default explicitly.
75Do not use this flag with the B<-clear> flag.
76
77=item B<-clear>
78
79Requests transfer of data from the B<upserver> process in unencrypted
80form. Provide this flag or the B<-crypt> flag, but not both.
81
82=item B<-t> <I<retry time>>
83
84Specifies how often to check for changes in each specified directory, as a
85number of seconds. If this argument is omitted, the default is C<300> (5
86minutes). This argument determines the maximum amount of time it takes for
87a change made on the source machine to propagate to this machine.
88
89=item B<-verbose>*
90
91Writes a trace of the upclient process's operations on the standard output
92stream, which usually corresponds to the machine console. Provide one,
93two, or three instances of the flag; each additional instance generates
94increasingly numerous and detailed messages.
95
96=item <I<dir>>+
97
98Names each directory to check for modified files. The conventional choices
99are the following:
100
101=over 4
102
103=item *
104
105F</usr/afs/bin>, in which case the recommended name for the process
106(assigned with the B<-instance> argument to the B<bos create> command) is
107C<upclientbin>. The I<hostname> is the binary distribution machine for the
108local machine's system type. You may wish to use the B<-clear> flag for
109the F</usr/afs/bin> directory, since binaries are not particularly
110sensitive and encrypting them takes system resources.
111
112=item *
113
114F</usr/afs/etc>, in which case the recommended name for the process
115(assigned with the B<-instance> argument to the B<bos create> command) is
116C<upclientetc>. The I<hostname> is the cell's system control machine. Use
117the B<-crypt> flag for the F</usr/afs/etc> directory, since it contains
118the F<KeyFile> file and other data vital to cell security.
119
120=back
121
122=item B<-help>
123
124Prints the online help for this command. All other valid options are
125ignored.
126
127=back
128
129=head1 EXAMPLES
130
131The following bos create command creates an C<upclientbin> process on the
132machine C<fs4.example.com> that refers to the machine C<fs1.example.com> as the
133source for the F</usr/afs/bin> directory (thus C<fs1.example.com> is the
134binary distribution machine for machines of C<fs4.example.com>'s type). The
135files in the F</usr/afs/bin> directory are distributed every 120 seconds.
136The command requests transfer in unencrypted form.
137
138 % bos create -server fs4.example.com -instance upclientbin -type simple \
139 -cmd "/usr/afs/bin/upclient fs1.example.com -clear \
140 -t 120 /usr/afs/bin"
141
142=head1 PRIVILEGE REQUIRED
143
144The issuer must be logged in as the superuser C<root> on a file server
145machine to issue the command at a command shell prompt. It is conventional
146instead to create and start the process by issuing the B<bos create>
147command.
148
149=head1 SEE ALSO
150
151L<BosConfig(5)>,
152L<bos_create(8)>,
153L<upserver(8)>
154
155=head1 COPYRIGHT
156
157IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
158
159This documentation is covered by the IBM Public License Version 1.0. It was
160converted from HTML to POD by software written by Chas Williams and Russ
161Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.