Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / fs_setclientaddrs.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3fs_setclientaddrs - Sets the client interfaces to register with the File Server
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<fs setclientaddrs> S<<< [B<-address> <I<client network interfaces>>+] >>> [B<-help>]
11
12B<fs setcl> S<<< [B<-a> <I<client network interfaces>>+] >>> [B<-h>]
13
14B<fs sc> S<<< [B<-a> <I<client network interfaces>>+] >>> [B<-h>]
15
16=for html
17</div>
18
19=head1 DESCRIPTION
20
21The B<fs setclientaddrs> command defines the IP addresses of the
22interfaces that the local Cache Manager registers with a File Server when
23first establishing a connection to it.
24
25The File Server uses the addresses when it initiates a remote procedure
26call (RPC) to the Cache Manager (as opposed to responding to an RPC sent
27by the Cache Manager). There are two common circumstances in which the
28File Server initiates RPCs: when it breaks callbacks and when it pings the
29client machine to verify that the Cache Manager is still accessible.
30
31The list of interfaces specified with this command replaces the list that
32the Cache Manager constructs and records in kernel memory as it
33initializes. At that time, if the file F</usr/vice/etc/NetInfo> exists on
34the client machine's local disk, the Cache Manager uses its contents as
35the basis for the list of interfaces addresses. If the file does not
36exist, the Cache Manager instead uses the network interfaces configured
37with the operating system. It then removes from the list any address
38included in the local F</usr/vice/etc/NetRestrict> file. It records the
39final list in kernel memory. (An administrator must create the F<NetInfo>
40and F<NetRestrict> files; there are no default versions of them.)
41
42If an RPC to that interface fails, the File Server simultaneously sends
43RPCs to all of the other interfaces in the list, to learn which of them
44are still available. Whichever interface replies first is the one to which
45the File Server then sends pings and RPCs to break callbacks.
46
47To list the interfaces that the Cache Manager is currently registering
48with File Servers, use the B<fs getclientaddrs> command.
49
50=head1 CAUTIONS
51
52The list specified with this command persists in kernel memory only until
53the client machine reboots. To preserve it across reboots, either list the
54interfaces in the local F</usr/vice/etc/NetInfo> file, or place the
55appropriate B<fs setclientaddrs> command in the machine's AFS
56initialization script.
57
58Changes made with this command do not propagate automatically to File
59Servers to which the Cache Manager has already established a
60connection. To force such File Servers to use the revised list, either
61reboot each file server machine, or change the F<NetInfo> file and reboot
62the client machine.
63
64The fs command interpreter verifies that each of the addresses specified
65as a value for the B<-address> argument is actually configured with the
66operating system on the client machine. If it is not, the command fails
67with an error message that marks the address as a C<Nonexistent
68interface>.
69
70=head1 OPTIONS
71
72=over 4
73
74=item B<-address> <I<client network interfaces>>+
75
76Specifies each IP address to place in the list of interfaces, in dotted
77decimal format. Hostnames are not acceptable. Separate each address with
78one or more spaces.
79
80=item B<-help>
81
82Prints the online help for this command. All other valid options are
83ignored.
84
85=back
86
87=head1 OUTPUT
88
89The message
90
91 Adding <interface>
92
93confirms that each new interface was added to the Cache Manager's
94list. The address appears in hexadecimal format to match the notation used
95in the File Server log, F</usr/afs/logs/FileLog>.
96
97=head1 EXAMPLES
98
99The following example sets the two interfaces that the Cache Manager
100registers with File Servers.
101
102 % fs setclientaddrs 191.255.105.68 191.255.108.84
103 Adding 0xbfff6944
104 Adding 0xbfff6c54
105
106=head1 PRIVILEGE REQUIRED
107
108The issuer must be logged in as the local superuser root.
109
110=head1 SEE ALSO
111
112L<NetInfo(5)>,
113L<NetRestrict(5)>,
114L<fileserver(8)>,
115L<fs_getclientaddrs(1)>
116
117=head1 COPYRIGHT
118
119IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
120
121This documentation is covered by the IBM Public License Version 1.0. It was
122converted from HTML to POD by software written by Chas Williams and Russ
123Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.