2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
fs setclientaddrs - Sets the client interfaces to register with the File Server
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
B<fs setclientaddrs> S<<< [B<-address> <I<client network interfaces>>+] >>> [B<-help>]
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
B<fs setcl> S<<< [B<-a> <I<client network interfaces>>+] >>> [B<-h>]
|
|
|
|
|
|
|
|
B<fs sc> S<<< [B<-a> <I<client network interfaces>>+] >>> [B<-h>]
|
|
|
|
|
|
|
|
=for html
|
|
|
|
</div>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The B<fs setclientaddrs> command defines the IP addresses of the
|
2005-12-08 12:14:33 +00:00
|
|
|
interfaces that the local Cache Manager registers with a File Server when
|
|
|
|
first establishing a connection to it.
|
|
|
|
|
|
|
|
The File Server uses the addresses when it initiates a remote procedure
|
2005-12-09 14:48:56 +00:00
|
|
|
call (RPC) to the Cache Manager (as opposed to responding to an RPC sent
|
|
|
|
by the Cache Manager). There are two common circumstances in which the
|
|
|
|
File Server initiates RPCs: when it breaks callbacks and when it pings the
|
|
|
|
client machine to verify that the Cache Manager is still accessible.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The list of interfaces specified with this command replaces the list that
|
|
|
|
the Cache Manager constructs and records in kernel memory as it
|
2005-12-09 14:48:56 +00:00
|
|
|
initializes. At that time, if the file F</usr/vice/etc/NetInfo> exists on
|
|
|
|
the client machine's local disk, the Cache Manager uses its contents as
|
|
|
|
the basis for the list of interfaces addresses. If the file does not
|
|
|
|
exist, the Cache Manager instead uses the network interfaces configured
|
|
|
|
with the operating system. It then removes from the list any address
|
|
|
|
included in the local F</usr/vice/etc/NetRestrict> file. It records the
|
|
|
|
final list in kernel memory. (An administrator must create the F<NetInfo>
|
|
|
|
and F<NetRestrict> files; there are no default versions of them.)
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
If an RPC to that interface fails, the File Server simultaneously sends
|
2005-12-09 14:48:56 +00:00
|
|
|
RPCs to all of the other interfaces in the list, to learn which of them
|
|
|
|
are still available. Whichever interface replies first is the one to which
|
2005-12-08 12:14:33 +00:00
|
|
|
the File Server then sends pings and RPCs to break callbacks.
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
To list the interfaces that the Cache Manager is currently registering
|
|
|
|
with File Servers, use the B<fs getclientaddrs> command.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=head1 CAUTIONS
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The list specified with this command persists in kernel memory only until
|
2005-12-09 14:48:56 +00:00
|
|
|
the client machine reboots. To preserve it across reboots, either list the
|
|
|
|
interfaces in the local F</usr/vice/etc/NetInfo> file, or place the
|
|
|
|
appropriate B<fs setclientaddrs> command in the machine's AFS
|
2005-12-08 12:14:33 +00:00
|
|
|
initialization script.
|
|
|
|
|
|
|
|
Changes made with this command do not propagate automatically to File
|
|
|
|
Servers to which the Cache Manager has already established a
|
|
|
|
connection. To force such File Servers to use the revised list, either
|
2005-12-09 14:48:56 +00:00
|
|
|
reboot each file server machine, or change the F<NetInfo> file and reboot
|
|
|
|
the client machine.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The fs command interpreter verifies that each of the addresses specified
|
|
|
|
as a value for the B<-address> argument is actually configured with the
|
|
|
|
operating system on the client machine. If it is not, the command fails
|
|
|
|
with an error message that marks the address as a C<Nonexistent
|
|
|
|
interface>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-address> <I<client network interfaces>>+
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Specifies each IP address to place in the list of interfaces, in dotted
|
2005-12-09 14:48:56 +00:00
|
|
|
decimal format. Hostnames are not acceptable. Separate each address with
|
|
|
|
one or more spaces.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=item B<-help>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Prints the online help for this command. All other valid options are
|
|
|
|
ignored.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 OUTPUT
|
|
|
|
|
|
|
|
The message
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Adding <interface>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
confirms that each new interface was added to the Cache Manager's
|
2005-12-09 14:48:56 +00:00
|
|
|
list. The address appears in hexadecimal format to match the notation used
|
|
|
|
in the File Server log, F</usr/afs/logs/FileLog>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
|
|
|
The following example sets the two interfaces that the Cache Manager
|
|
|
|
registers with File Servers.
|
|
|
|
|
|
|
|
% fs setclientaddrs 191.255.105.68 191.255.108.84
|
|
|
|
Adding 0xbfff6944
|
|
|
|
Adding 0xbfff6c54
|
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
|
|
|
The issuer must be logged in as the local superuser root.
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
L<NetInfo(5)>,
|
|
|
|
L<NetRestrict(5)>,
|
|
|
|
L<fileserver(8)>,
|
2005-12-08 12:14:33 +00:00
|
|
|
L<fs_getclientaddrs(1)>
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
|
|
|
|
|
|
|
|
This documentation is covered by the IBM Public License Version 1.0. It was
|
|
|
|
converted from HTML to POD by software written by Chas Williams and Russ
|
|
|
|
Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
|