fs_sysname - Reports or sets the CPU/operating system type
fs sysname [-newsys <new sysname>]+ [-format] [-help]
The fs sysname command sets or displays the local machine's CPU/operating system type as recorded by the Cache Manager. The Cache Manager substitutes the string for the @sys variable which can occur in /afs pathnames; the Auristor Quick Start Guide and Auristor Administration Guide explain how using @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.
Sets the CPU/operating system indicator string for the local machine. This option may be used multiple times in the same invocation, which sets @sys to an array of values. When @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.
This option indicates to output the sysname list in a raw format, with one name per line.
Prints the online help for this command. All other valid options are ignored.
When the -newsys argument is omitted, the output reports the machine's system type in the following format:
Current sysname is '<system_type>'
When the -newsys argument is included, the output is the following:
fs: new sysname list set.
The following example shows the output produced on a Sun Netra T1 running Solaris 10:
% fs sysname Current sysname is 'sun4x_510'
The following command defines a machine to be a IBM RS/6000 running AIX 4.2:
% fs sysname -newsys rs_aix42
The following command defines a machine to be Mac OS X PPC and a custom type 'foo'.
% fs sysname -newsys ppc_darwin_80 -newsys foo fs: new sysname list set.
This command queries the new sysname:
% fs sysname Current sysname list is 'ppc_darwin_80' 'foo'
This queries the sysname and produces output in a raw format:
% fs sysname -format ppc_darwin_80 foo
If @sys is ppc_darwin_80 foo
, then cd @sys
will try to change to the ppc_darwin_80
directory. If the ppc_darwin_80
directory doesn't exist, then the foo
directory is tried.
A default list can be set with the sysname setting in the afsd configuration stanza within yfs-client.conf.
To display the current setting, no privilege is required. To modify the Cache Manager via use of the -newsys argument, the issuer must be logged in as the local superuser root
.
fs_exportafs(1), yfs-client.conf(5)
For the list of assigned standard sysname values, see http://grand.central.org/numbers/systypes.html
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.
"AFS" is a registered mark of International Business Machines Corporation, used under license. (USPTO Registration 1598389)
"OpenAFS" is a registered mark of International Business Machines Corporation. (USPTO Registration 4577045)
The "AuriStor" name, log 'S' brand mark, and icon are registered marks of AuriStor, Inc. (USPTO Registrations 4849419, 4849421, and 4928460) (EUIPO Registration 015539653).
"Your File System" is a registered mark of AuriStor, Inc. (USPTO Registrations 4801402 and 4849418).
"YFS" and "AuriStor File System" are trademarks of AuriStor, Inc.