1 | .\" |
---|
2 | .\" Copyright (c) 1992-1998 Michael A. Cooper. |
---|
3 | .\" This software may be freely distributed provided it is not sold for |
---|
4 | .\" profit and the author is credited appropriately. |
---|
5 | .\" |
---|
6 | .\" $Revision: 1.1.1.2 $ |
---|
7 | .\" |
---|
8 | .TH sysinfo.cf 5 "22 April 1998" |
---|
9 | .ds ]W MagniComp |
---|
10 | .SH NAME |
---|
11 | sysinfo.cf \- Configuration File for sysinfo |
---|
12 | .SH SYNOPSIS |
---|
13 | \fBConfDir \fIPathName\fR |
---|
14 | .br |
---|
15 | .sp |
---|
16 | \fBDefine | \fIType | StringKey | NumericKey | Value1 | Value 2\fR |
---|
17 | .br |
---|
18 | .sp |
---|
19 | \fBDevice | \fIName | Type\fB/[\fISubType\fB]\fI | NumericID | |
---|
20 | Model | Description | Flags | DevFiles\fR |
---|
21 | .br |
---|
22 | .sp |
---|
23 | \fBInclude \fIFileName\fR |
---|
24 | .SH DESCRIPTION |
---|
25 | .B sysinfo.cf |
---|
26 | files are parsed by the |
---|
27 | .B sysinfo |
---|
28 | program. Text starting with ``#'' and continuing |
---|
29 | to the end of the line is |
---|
30 | ignored. Each line starts with a specific keyword as described below. |
---|
31 | All leading and trailing white space (space and TAB characters) for |
---|
32 | each field is removed before parsing. |
---|
33 | All keywords are case insensitive. |
---|
34 | The valid keywords are: |
---|
35 | .IP "\fBConfDir \fIPathName\fR" |
---|
36 | Set the name of the directory to look for configuration files in to |
---|
37 | be \fIPathName\fR. |
---|
38 | This also sets the value of the |
---|
39 | .B ${ConfDir} |
---|
40 | variable available for use with the |
---|
41 | .B Include |
---|
42 | keyword. |
---|
43 | The default is |
---|
44 | .B /var/local/sysinfo/conf |
---|
45 | .IP "\fBDefine \fIfields\fR" |
---|
46 | Definetion. Each |
---|
47 | field is seperated by a ``|'' character. Any fields that are not |
---|
48 | specified are initialized to NULL. |
---|
49 | The |
---|
50 | .I StringKey |
---|
51 | and/or |
---|
52 | .I NumericKey |
---|
53 | fields are used in matching search criteria. |
---|
54 | The specification for each field follows: |
---|
55 | .RS |
---|
56 | .IP \fIType\fR |
---|
57 | Specify the definetion type. The following |
---|
58 | .I Type |
---|
59 | values are allowed: |
---|
60 | \fB |
---|
61 | CPU, |
---|
62 | Category, |
---|
63 | KArch, |
---|
64 | Kernel, |
---|
65 | NetType, |
---|
66 | OBP, |
---|
67 | Part, |
---|
68 | SysConf, |
---|
69 | SysModel, |
---|
70 | TapeInfo, |
---|
71 | VPD |
---|
72 | \fR |
---|
73 | .IP \fIStringKey\fR |
---|
74 | A string to use as a key. |
---|
75 | .IP \fINumericKey\fR |
---|
76 | A numeric value to use as a key. |
---|
77 | .IP \fIValue1\fR |
---|
78 | A string to return for the entry. |
---|
79 | .IP \fIValue2\fR |
---|
80 | A string to return for the entry. |
---|
81 | .RE |
---|
82 | .IP "\fBDevice \fIfields\fR" |
---|
83 | Device specification. Each |
---|
84 | field is seperated by a ``|'' character. Any fields that are not |
---|
85 | specified are initialized to NULL. |
---|
86 | The specification for each field follows: |
---|
87 | .RS |
---|
88 | .IP \fIName\fR |
---|
89 | The name of the device. |
---|
90 | ( e.g. |
---|
91 | .B sd, |
---|
92 | .B cgsix |
---|
93 | ) |
---|
94 | .IP "\fIType\fB/[\fISubType\fB]\fR" |
---|
95 | The type of device. |
---|
96 | The |
---|
97 | .I Type |
---|
98 | value is used to determine how to |
---|
99 | .I probe |
---|
100 | the device and what device type label to assign to it. |
---|
101 | If |
---|
102 | .I SubType |
---|
103 | is specified, then the |
---|
104 | .I Type |
---|
105 | field specifies how to |
---|
106 | .I probe |
---|
107 | the device and the |
---|
108 | .I SubType |
---|
109 | field specifies what device type label to assign. |
---|
110 | The valid keywords are: |
---|
111 | .br |
---|
112 | \fB |
---|
113 | Bus, |
---|
114 | CDROM, |
---|
115 | CPU, |
---|
116 | Device, |
---|
117 | DiskCtlr, |
---|
118 | DiskDrive, |
---|
119 | FrameBuffer, |
---|
120 | Generic, |
---|
121 | KeyBoard, |
---|
122 | Memory, |
---|
123 | NetIF, |
---|
124 | Pseudo, |
---|
125 | TapeCtlr, |
---|
126 | TapeDrive |
---|
127 | \fR |
---|
128 | .IP \fINumericID\fR |
---|
129 | Specifies a unique numeric identifier for a particuliar device type. |
---|
130 | This field is typically used to find a device by a numeric value |
---|
131 | returned from the kernel. |
---|
132 | .IP \fIModel\fR |
---|
133 | The device's model. |
---|
134 | .IP \fIDescription\fR |
---|
135 | A description of the device. |
---|
136 | .IP \fIFlags\fR |
---|
137 | The |
---|
138 | .I Flags |
---|
139 | field may contain either a valid keyword or a numeric value. |
---|
140 | Numeric values are used in a device-type specific manner by the |
---|
141 | device type's probe routine. |
---|
142 | The valid keywords are: |
---|
143 | .RS |
---|
144 | .IP \fBDefInfo\fR |
---|
145 | Use default device definetion information. |
---|
146 | Usage varies by device type. |
---|
147 | .IP \fBLenCmp\fR |
---|
148 | Compare device name by length. |
---|
149 | .IP \fBNoUnit\fR |
---|
150 | Don't add a unit number to the device's name. |
---|
151 | .IP \fBZombie\fR |
---|
152 | If the device is present, treat it as if it were |
---|
153 | alive regardless of whether the kernel has |
---|
154 | indicated so. |
---|
155 | .RE |
---|
156 | .IP \fIDevFiles\fR |
---|
157 | A list of space seperated device files that provide access |
---|
158 | to the device. |
---|
159 | Each file may contain a |
---|
160 | .B `%d' |
---|
161 | which will be expanded to be the device's unit number. |
---|
162 | .RE |
---|
163 | .IP "\fBInclude \fIFileName\fR" |
---|
164 | Read and parse a |
---|
165 | .B sysinfo.cf |
---|
166 | file called |
---|
167 | .I FileName. |
---|
168 | Parsing of the current file resumes on the next line when finished |
---|
169 | with |
---|
170 | .I FileName. |
---|
171 | If |
---|
172 | .I FileName |
---|
173 | does not exist, sysinfo will silently continue parsing the current file. |
---|
174 | .I FileName |
---|
175 | may contain variables that are expanded at runtime. |
---|
176 | Variable names are enclosed inside of |
---|
177 | .B ${} |
---|
178 | or |
---|
179 | .B $() |
---|
180 | and are case insensitive. |
---|
181 | The following variables are available: |
---|
182 | .RS |
---|
183 | .IP \fB${ConfDir}\fR |
---|
184 | The path to the |
---|
185 | .B sysinfo |
---|
186 | configuration directory. |
---|
187 | .IP \fB${DefConfFile}\fR |
---|
188 | The name of the default |
---|
189 | .B sysinfo.cf |
---|
190 | configuration file. |
---|
191 | ( e.g. |
---|
192 | .B Default.cf |
---|
193 | ) |
---|
194 | .IP \fB${OSname}\fR |
---|
195 | The name of the operating system. |
---|
196 | ( e.g. |
---|
197 | .B SunOS |
---|
198 | ) |
---|
199 | .IP \fB${OSver}\fR |
---|
200 | The operating system version number. |
---|
201 | ( e.g. |
---|
202 | .B 4.1.3 |
---|
203 | ) |
---|
204 | .IP \fB${OSmajver}\fR |
---|
205 | The operating system major version number. |
---|
206 | ( e.g. for |
---|
207 | .B 4.1.3 |
---|
208 | the value would be |
---|
209 | .B 4 |
---|
210 | ) |
---|
211 | .RE |
---|
212 | .SH AUTHOR |
---|
213 | Michael A. Cooper |
---|
214 | .br |
---|
215 | MagniComp Systems |
---|
216 | .br |
---|
217 | mcooper@magnicomp.com |
---|
218 | .SH "HOME PAGE" |
---|
219 | .B http://www.magnicomp.com/sysinfo/ |
---|
220 | .SH SEE ALSO |
---|
221 | sysinfo(1) |
---|
222 | .SH DIAGNOSTICS |
---|
223 | .SH BUGS |
---|