2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
2007-11-11 22:54:56 +00:00
|
|
|
fs_sysname - Reports or sets the CPU/operating system type
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
2005-12-09 14:48:56 +00:00
|
|
|
|
2007-11-29 04:17:10 +00:00
|
|
|
B<fs sysname> S<<< [B<-newsys> <I<new sysname>>]+ >>> [B<-help>]
|
2006-03-01 05:02:29 +00:00
|
|
|
|
2007-11-29 04:17:10 +00:00
|
|
|
B<fs sy> S<<< [B<-n> <I<new sysname>>]+ >>> [B<-h>]
|
2006-03-01 05:02:29 +00:00
|
|
|
|
|
|
|
=for html
|
|
|
|
</div>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
The B<fs sysname> command sets or displays the local machine's
|
|
|
|
CPU/operating system type as recorded in kernel memory. The Cache Manager
|
|
|
|
substitutes the string for the I<@sys> variable which can occur in AFS
|
2007-11-29 04:17:10 +00:00
|
|
|
pathnames; the I<OpenAFS Quick Beginnings> and I<OpenAFS Administration
|
2005-12-09 14:48:56 +00:00
|
|
|
Guide> explain how using I<@sys> can simplify cell configuration. It is
|
|
|
|
best to use it sparingly, however, because it can make the effect of
|
|
|
|
changing directories unpredictable.
|
|
|
|
|
|
|
|
The command always applies to the local machine only. If issued on an NFS
|
|
|
|
client machine accessing AFS via the NFS/AFS Translator, the string is set
|
|
|
|
or reported for the NFS client machine. The Cache Manager on the AFS
|
|
|
|
client machine serving as the NFS client's NFS/AFS translator machine
|
|
|
|
stores the value in its kernel memory, and so can provide the NFS client
|
|
|
|
with the proper version of program binaries when the user issues commands
|
|
|
|
for which the pathname to the binaries includes I<@sys>. There is a
|
|
|
|
separate record for each user logged into the NFS client, which implies
|
|
|
|
that if a user adopts a new identity (UNIX UID) during a login session on
|
|
|
|
the NFS client -- perhaps by using the UNIX B<su> command -- he or she
|
|
|
|
must verify that the correct string is set for the new identity also.
|
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item B<-newsys> <I<new sysname>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2007-11-29 04:17:10 +00:00
|
|
|
Sets the CPU/operating system indicator string for the local machine. This
|
|
|
|
option may be used multiple times in the same invocation, which sets I<@sys>
|
|
|
|
to an array of values. When I<@sys> contains an array of values, the first
|
|
|
|
value that matches a path is used.
|
|
|
|
|
|
|
|
If this argument is omitted, the output displays the current setting
|
|
|
|
instead. AFS uses a standardized set of strings; consult the I<OpenAFS Quick
|
|
|
|
Beginnings> or I<OpenAFS Release Notes>.
|
2005-12-09 14:48:56 +00:00
|
|
|
|
|
|
|
=item B<-help>
|
|
|
|
|
|
|
|
Prints the online help for this command. All other valid options are
|
|
|
|
ignored.
|
|
|
|
|
|
|
|
=back
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 OUTPUT
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
When the B<-newsys> argument is omitted, the output reports the machine's
|
|
|
|
system type in the following format:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
Current sysname is '<system_type>'
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2007-11-29 04:17:10 +00:00
|
|
|
When the B<-newsys> argument is included, the output is the following:
|
|
|
|
|
|
|
|
fs: new sysname list set.
|
|
|
|
|
2005-12-08 12:14:33 +00:00
|
|
|
=head1 EXAMPLES
|
|
|
|
|
2011-06-24 21:25:46 +01:00
|
|
|
The following example shows the output produced on a Sun Netra T1
|
|
|
|
running Solaris 10:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
% fs sysname
|
2011-06-24 21:25:46 +01:00
|
|
|
Current sysname is 'sun4x_510'
|
2005-12-09 14:48:56 +00:00
|
|
|
|
|
|
|
The following command defines a machine to be a IBM RS/6000 running AIX
|
|
|
|
4.2:
|
|
|
|
|
|
|
|
% fs sysname -newsys rs_aix42
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2007-11-29 04:17:10 +00:00
|
|
|
The following command defines a machine to be Mac OS X PPC and a
|
|
|
|
custom type 'foo'. The second command queries the new sysname:
|
|
|
|
|
|
|
|
% fs sysname -newsys ppc_darwin_80 -newsys foo
|
|
|
|
fs: new sysname list set.
|
|
|
|
% fs sysname
|
|
|
|
Current sysname list is 'ppc_darwin_80' 'foo'
|
|
|
|
|
|
|
|
If I<@sys> is C<ppc_darwin_80 foo>, then C<cd @sys> will try to change
|
|
|
|
to the C<ppc_darwin_80> directory. If the C<ppc_darwin_80> directory
|
|
|
|
doesn't exist, then the C<foo> directory is tried.
|
|
|
|
|
2005-12-08 12:14:33 +00:00
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
To display the current setting, no privilege is required. To include the
|
|
|
|
B<-newsys> argument on an AFS client machine, the issuer must be logged in
|
|
|
|
as the local superuser C<root>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
L<fs_exportafs(1)>,
|
|
|
|
L<sys(1)>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2010-05-26 18:20:57 +01:00
|
|
|
The I<OpenAFS Quick Start Guide> at
|
|
|
|
L<http://docs.openafs.org/QuickStartUnix/>.
|
2007-11-29 04:17:10 +00:00
|
|
|
|
2010-05-26 18:20:57 +01:00
|
|
|
The I<OpenAFS Administration Guide>
|
|
|
|
L<http://docs.openafs.org/AdminGuide/>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2007-11-29 04:17:10 +00:00
|
|
|
For the list of assigned standard sysname values, see
|
|
|
|
L<http://grand.central.org/numbers/systypes.html>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=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.
|