.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "FS_SYSNAME 1" .TH FS_SYSNAME 1 2024-03-20 OpenAFS "AFS Command Reference" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME fs_sysname \- Reports or sets the CPU/operating system type .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBfs sysname\fR [\fB\-newsys\fR\ <\fInew\ sysname\fR>]+ [\fB\-help\fR] .PP \&\fBfs sy\fR [\fB\-n\fR\ <\fInew\ sysname\fR>]+ [\fB\-h\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" The \fBfs sysname\fR 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 \fR\f(CI@sys\fR\fI\fR variable which can occur in AFS pathnames; the \fIOpenAFS Quick Beginnings\fR and \fIOpenAFS Administration Guide\fR explain how using \fI\fR\f(CI@sys\fR\fI\fR can simplify cell configuration. It is best to use it sparingly, however, because it can make the effect of changing directories unpredictable. .PP 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 \fR\f(CI@sys\fR\fI\fR. 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 \fBsu\fR command \-\- he or she must verify that the correct string is set for the new identity also. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-newsys\fR <\fInew sysname\fR>" 4 .IX Item "-newsys " Sets the CPU/operating system indicator string for the local machine. This option may be used multiple times in the same invocation, which sets \fR\f(CI@sys\fR\fI\fR to an array of values. When \fI\fR\f(CI@sys\fR\fI\fR contains an array of values, the first value that matches a path is used. .Sp If this argument is omitted, the output displays the current setting instead. AFS uses a standardized set of strings; consult the \fIOpenAFS Quick Beginnings\fR or \fIOpenAFS Release Notes\fR. .IP \fB\-help\fR 4 .IX Item "-help" Prints the online help for this command. All other valid options are ignored. .SH OUTPUT .IX Header "OUTPUT" When the \fB\-newsys\fR argument is omitted, the output reports the machine's system type in the following format: .PP .Vb 1 \& Current sysname is \*(Aq\*(Aq .Ve .PP When the \fB\-newsys\fR argument is included, the output is the following: .PP .Vb 1 \& fs: new sysname list set. .Ve .SH EXAMPLES .IX Header "EXAMPLES" The following example shows the output produced on a Sun Netra T1 running Solaris 10: .PP .Vb 2 \& % fs sysname \& Current sysname is \*(Aqsun4x_510\*(Aq .Ve .PP The following command defines a machine to be a IBM RS/6000 running AIX 4.2: .PP .Vb 1 \& % fs sysname \-newsys rs_aix42 .Ve .PP The following command defines a machine to be Mac OS X PPC and a custom type 'foo'. The second command queries the new sysname: .PP .Vb 4 \& % fs sysname \-newsys ppc_darwin_80 \-newsys foo \& fs: new sysname list set. \& % fs sysname \& Current sysname list is \*(Aqppc_darwin_80\*(Aq \*(Aqfoo\*(Aq .Ve .PP If \fR\f(CI@sys\fR\fI\fR is \f(CW\*(C`ppc_darwin_80 foo\*(C'\fR, then \f(CW\*(C`cd @sys\*(C'\fR will try to change to the \f(CW\*(C`ppc_darwin_80\*(C'\fR directory. If the \f(CW\*(C`ppc_darwin_80\*(C'\fR directory doesn't exist, then the \f(CW\*(C`foo\*(C'\fR directory is tried. .SH "PRIVILEGE REQUIRED" .IX Header "PRIVILEGE REQUIRED" To display the current setting, no privilege is required. To include the \&\fB\-newsys\fR argument on an AFS client machine, the issuer must be logged in as the local superuser \f(CW\*(C`root\*(C'\fR. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBfs_exportafs\fR\|(1), \&\fBsys\fR\|(1) .PP The \fIOpenAFS Quick Start Guide\fR at . .PP The \fIOpenAFS Administration Guide\fR . .PP For the list of assigned standard sysname values, see .SH COPYRIGHT .IX Header "COPYRIGHT" IBM Corporation 2000. All Rights Reserved. .PP 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.