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