1 | .\" -*- nroff -*- mode |
---|
2 | .\" $Id: machtype.1,v 1.21 1999-01-22 23:11:34 ghudson Exp $ |
---|
3 | .TH MACHTYPE 1 "May 14 1996" |
---|
4 | .SH NAME |
---|
5 | machtype \- Print machine type to standard output |
---|
6 | .SH SYNOPSIS |
---|
7 | .B machtype |
---|
8 | [-c] [-d] [-r] [-M] [-v] [-A] [-L] [-P] [-N] [-E] [-S] [-C] [-q] |
---|
9 | .SH DESCRIPTION |
---|
10 | .I Machtype |
---|
11 | prints the CPU type to standard output. It prints "sun4" when run on a |
---|
12 | Sun and "sgi" when run on an SGI. |
---|
13 | .TP |
---|
14 | .B -c |
---|
15 | Print the specific cpu type (e.g. SPARC/5 or IP22). |
---|
16 | .TP |
---|
17 | .B -d |
---|
18 | Print the types of display attached to the system (e.g. "cgthree"). |
---|
19 | .TP |
---|
20 | .B -r |
---|
21 | Print the types of any disk drives attached to the system, one to a |
---|
22 | line, as in "SUN0535". |
---|
23 | .TP |
---|
24 | .B -M |
---|
25 | Print the physical memory present, in kilobytes. |
---|
26 | .TP |
---|
27 | .B -v |
---|
28 | Verbose output (suitable for humans to read, instead of computers). |
---|
29 | .TP |
---|
30 | .B -A |
---|
31 | Print out the release that machtype was compiled under. |
---|
32 | .TP |
---|
33 | .B -P |
---|
34 | Print out the version of the Athena system packs attached, from |
---|
35 | .I /srvd/.rvdinfo |
---|
36 | .TP |
---|
37 | .B -L |
---|
38 | Print out the version of Athena installed on the local system from |
---|
39 | .I /etc/athena/version. |
---|
40 | .TP |
---|
41 | .B -N |
---|
42 | Print out the name of the base operating system machtype was compiled |
---|
43 | under; if used with the "-v" flag, the version number of the OS will |
---|
44 | be included as well. Current values for the name of the base OS are |
---|
45 | "SunOS" and "IRIX". |
---|
46 | .TP |
---|
47 | .B -E |
---|
48 | Print out the version number of the base operating system machtype was |
---|
49 | compiled under. |
---|
50 | .TP |
---|
51 | .B -S |
---|
52 | Print out the "Athena System" name for the current architecture. This |
---|
53 | value is normally stored in the environment variable ATHENA_SYS, and |
---|
54 | ideally corresponds to the AFS system name for the same machine |
---|
55 | assuming the machine were running AFS. This value is used in the Athena |
---|
56 | environment as part of a scheme for laying out filesystems containing |
---|
57 | binaries for multiple architectures. See \fIlockers\fR(7) for more |
---|
58 | information. |
---|
59 | .TP |
---|
60 | .B -C |
---|
61 | Print out a colon-separated list of "Athena System" names that are |
---|
62 | compatible with the current architecture. This value is normally |
---|
63 | stored in the environment variable ATHENA_SYS_COMPAT, and is used by |
---|
64 | \fIathdir\fR(1) and \fIadd\fR(1) as a set of fallback values when a |
---|
65 | locker doesn't have binaries for the actual Athena System name. |
---|
66 | .TP |
---|
67 | .B -q |
---|
68 | Print out "quickstation" if the workstation is a quickstation and |
---|
69 | "not_quickstation" if it is not. |
---|
70 | .PP |
---|
71 | .I Machtype |
---|
72 | is useful for conditionalizing shell scripts, .login files, etc. in an |
---|
73 | environment that contains filesystems shared across several different |
---|
74 | architectures. |
---|
75 | .SH SEE ALSO |
---|
76 | csh(1), lockers(7) |
---|