6324 Add an `ndp' tool for manipulating the neighbors table
[illumos-gate.git] / usr / src / man / man1m / sacadm.1m
blobadcb22fef0966f257e07a7f6e5d280c7b22fbcb0
1 '\" te
2 .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
3 .\" Copyright 1989 AT&T
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH SACADM 1M "Sep 14, 1992"
8 .SH NAME
9 sacadm \- service access controller administration
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fBsacadm\fR \fB-a\fR \fB-p\fR \fIpmtag\fR \fB-t\fR \fItype\fR \fB-c\fR \fIcmd\fR \fB-v\fR \fIver\fR [\fB-f\fR dx] [\fB-n\fR \fIcount\fR]
14      [\fB-y\fR \fIcomment\fR] [\fB-z\fR \fIscript\fR]
15 .fi
17 .LP
18 .nf
19 \fBsacadm\fR \fB-r\fR \fB-p\fR \fIpmtag\fR
20 .fi
22 .LP
23 .nf
24 \fBsacadm\fR \fB-s\fR \fB-p\fR \fIpmtag\fR
25 .fi
27 .LP
28 .nf
29 \fBsacadm\fR \fB-k\fR \fB-p\fR \fIpmtag\fR
30 .fi
32 .LP
33 .nf
34 \fBsacadm\fR \fB-e\fR \fB-p\fR \fIpmtag\fR
35 .fi
37 .LP
38 .nf
39 \fBsacadm\fR \fB-d\fR \fB-p\fR \fIpmtag\fR
40 .fi
42 .LP
43 .nf
44 \fBsacadm\fR \fB-l\fR [\fB-p\fR \fIpmtag\fR | \fB-t\fR \fItype\fR]
45 .fi
47 .LP
48 .nf
49 \fBsacadm\fR \fB-L\fR [\fB-p\fR \fIpmtag\fR | \fB-t\fR \fItype\fR]
50 .fi
52 .LP
53 .nf
54 \fBsacadm\fR \fB-g\fR \fB-p\fR \fIpmtag\fR [\fB-z\fR \fIscript\fR]
55 .fi
57 .LP
58 .nf
59 \fBsacadm\fR \fB-G\fR [\fB-z\fR \fIscript\fR]
60 .fi
62 .LP
63 .nf
64 \fBsacadm\fR \fB-x\fR [\fB-p\fR \fIpmtag\fR]
65 .fi
67 .SH DESCRIPTION
68 .sp
69 .LP
70 \fBsacadm\fR is the administrative command for the upper level of the Service
71 Access Facility hierarchy (port monitor administration). \fBsacadm\fR performs
72 the following functions:
73 .RS +4
74 .TP
75 .ie t \(bu
76 .el o
77 adds or removes a port monitor
78 .RE
79 .RS +4
80 .TP
81 .ie t \(bu
82 .el o
83 starts or stops a port monitor
84 .RE
85 .RS +4
86 .TP
87 .ie t \(bu
88 .el o
89 enables or disables a port monitor
90 .RE
91 .RS +4
92 .TP
93 .ie t \(bu
94 .el o
95 installs or replaces a per-system configuration script
96 .RE
97 .RS +4
98 .TP
99 .ie t \(bu
100 .el o
101 installs or replaces a per-port monitor configuration script
103 .RS +4
105 .ie t \(bu
106 .el o
107 prints requested port monitor information
111 Requests about the status of port monitors (\fB-l\fR and \fB-L\fR) and requests
112 to print per-port monitor and per-system configuration scripts (\fB-g\fR and
113 \fB-G\fR without the \fB-z\fR option) may be executed by any user on the
114 system. Other \fBsacadm\fR commands may be executed only by the super-user.
115 .SH OPTIONS
117 .ne 2
119 \fB\fB-a\fR\fR
121 .RS 14n
122 Add a port monitor. When adding a port monitor, \fBsacadm\fR creates the
123 supporting directory structure in \fB/etc/saf\fR and \fB/var/saf\fR and adds an
124 entry for the new port monitor to \fB/etc/saf/_sactab\fR. The file
125 \fB_sactab\fR already exists on the delivered system. Initially, it is empty
126 except for a single line, which contains the version number of the Service
127 Access Controller. Unless the command line that adds the new port monitor
128 includes the \fB-f\fR option with the \fB-x\fR argument, the new port monitor
129 will be started. Because of the complexity of the options and arguments that
130 follow the \fB- a\fR option, it may be convenient to use a command script or
131 the menu system to add port monitors.
135 .ne 2
137 \fB\fB-c\fR \fIcmd\fR\fR
139 .RS 14n
140 Execute the command string \fIcmd\fR to start a port monitor. The \fB-c\fR
141 option may be used only with a \fB-a\fR. A \fB-a\fR option requires a \fB-c\fR.
145 .ne 2
147 \fB\fB-d\fR\fR
149 .RS 14n
150 Disable the port monitor \fIpmtag\fR.
154 .ne 2
156 \fB\fB-e\fR\fR
158 .RS 14n
159 Enable the port monitor \fIpmtag\fR.
163 .ne 2
165 \fB\fB-f\fR \fBdx\fR\fR
167 .RS 14n
168 The \fB-f\fR option  specifies one or both of the following two flags which are
169 then included in the flags field of the \fB_sactab\fR entry for the new port
170 monitor. If the \fB-f\fR option is not included on the command line, no flags
171 are set and the default conditions prevail. By default, a port monitor is
172 started. A \fB-f\fR option with no following argument is illegal.
174 .ne 2
176 \fBd\fR
178 .RS 5n
179 Do not enable the new port monitor.
183 .ne 2
185 \fBx\fR
187 .RS 5n
188 Do not start the new port monitor.
194 .ne 2
196 \fB\fB-g\fR\fR
198 .RS 14n
199 The \fB-g\fR option is used to request output or to install or replace the
200 per-port monitor configuration script \fB/etc/saf/\fR\fIpmtag\fR\fB/_config\fR.
201 \fB-g\fR requires a \fB-p\fR option. The \fB-g\fR option with only a \fB-p\fR
202 option prints the per-port monitor configuration script for port monitor
203 \fIpmtag\fR. The \fB-g\fR option with a \fB-p\fR option and a \fB-z\fR option
204 installs  the file \fBscript\fR as the per-port monitor configuration script
205 for port monitor \fIpmtag\fR. Other combinations of options with \fB-g\fR are
206 invalid.
210 .ne 2
212 \fB\fB-G\fR\fR
214 .RS 14n
215 The \fB-G\fR option is used to request output or to install or replace the
216 per-system configuration script \fB/etc/saf/_sysconfig\fR. The \fB-G\fR option
217 by itself prints the per-system configuration script. The \fB-G\fR option in
218 combination with a \fB-z\fR option  installs the file \fBscript\fR as the
219 per-system configuration script. Other combinations of options with a \fB-G\fR
220 option are invalid.
224 .ne 2
226 \fB\fB-k\fR\fR
228 .RS 14n
229 Stop port monitor \fIpmtag\fR.
233 .ne 2
235 \fB\fB-l\fR\fR
237 .RS 14n
238 The \fB-l\fR option is used to request port monitor information. The \fB-l\fR
239 by itself lists all port monitors on the system. The \fB-l\fR option in
240 combination with the \fB-p\fR option lists only the port monitor specified by
241 \fIpmtag\fR. A \fB-l\fR in combination with the \fB-t\fR option lists all port
242 monitors of type \fBtype\fR. Any other combination of options with the \fB-l\fR
243 option is invalid.
247 .ne 2
249 \fB\fB-L\fR\fR
251 .RS 14n
252 The \fB-L\fR option is identical to the \fB-l\fR option except that the output
253 appears in a condensed format.
257 .ne 2
259 \fB\fB-n\fR \fIcount\fR\fR
261 .RS 14n
262 Set the restart count to \fIcount\fR. If a restart count is not specified,
263 count is set to \fB0\fR. A count of \fB0\fR indicates that the port monitor is
264 not to be restarted if it fails.
268 .ne 2
270 \fB\fB-p\fR \fIpmtag\fR\fR
272 .RS 14n
273 Specifies the tag associated with a port monitor.
277 .ne 2
279 \fB\fB-r\fR\fR
281 .RS 14n
282 Remove port monitor \fIpmtag\fR. \fBsacadm\fR removes the port monitor entry
283 from \fB/etc/saf/_sactab\fR. If the removed port monitor is not running, then
284 no further action is taken. If the removed port monitor is running, the Service
285 Access Controller (SAC) sends it \fBSIGTERM\fR to indicate that it should shut
286 down. Note that the port monitor's directory structure remains intact.
290 .ne 2
292 \fB\fB-s\fR\fR
294 .RS 14n
295 Start a port monitor. The SAC starts the port monitor \fIpmtag\fR.
299 .ne 2
301 \fB\fB-t\fR \fBtype\fR\fR
303 .RS 14n
304 Specifies the port monitor type.
308 .ne 2
310 \fB\fB-v\fR \fBver\fR\fR
312 .RS 14n
313 Specifies the version number of the port monitor. This version number may be
314 given as
316 .in +2
318 \fB\fR\fB-v\fR\fB `\fR\fIpmspec\fR \fB-V\fR`
320 .in -2
323 where \fIpmspec\fR is the special administrative command for port monitor
324 \fIpmtag\fR. This special command is \fBttyadm\fR for \fBttymon\fR and
325 \fBnlsadmin\fR for \fBlisten\fR. The version stamp of the port monitor is known
326 by the command and is returned when \fIpmspec\fR is invoked with a \fB-V\fR
327 option.
331 .ne 2
333 \fB\fB-x\fR\fR
335 .RS 14n
336 The \fB-x\fR option by itself  tells the SAC to read its database file
337 (\fB_sactab\fR). The \fB-x\fR option with the \fB-p\fR option tells port
338 monitor \fIpmtag\fR to read its administrative file.
342 .ne 2
344 \fB\fB-y\fR \fIcomment\fR\fR
346 .RS 14n
347 Include \fIcomment\fR in the \fB_sactab\fR entry for port monitor \fIpmtag\fR.
351 .ne 2
353 \fB\fB-z\fR \fBscript\fR\fR
355 .RS 14n
356 Used with the \fB-g\fR and \fB-G\fR options to specify the name of a file that
357 contains a configuration script. With the \fB-g\fR option, \fBscript\fR is a
358 per-port monitor configuration script; with \fB-G\fR it is a per-system
359 configuration script. Modifying a configuration script is a three-step
360 procedure. First a copy of the existing script is made (\fB-g\fR or \fB-G\fR).
361 Then the copy is edited. Finally, the copy is put in place over the existing
362 script (\fB-g\fR or \fB-G\fR with \fB-z\fR).
365 .SH OUTPUT
368 If successful, \fBsacadm\fR will exit with a status of \fB0\fR. If \fBsacadm\fR
369 fails for any reason, it will exit with a nonzero status. Options that request
370 information will write the information on the standard output. In the condensed
371 format (\fB-L\fR), port monitor information is printed as a sequence of
372 colon-separated fields; empty fields are indicated by two successive colons.
373 The standard format (\fB-l\fR) prints a header identifying the columns, and
374 port monitor information is aligned under the appropriate headings. In this
375 format, an empty field is indicated by a hyphen. The comment character is
376 \fB#\fR.
377 .SH EXAMPLES
379 \fBExample 1 \fRA sample output of the \fBsacadm\fR command.
382 The following command line adds a port monitor. The port monitor tag is
383 \fBnpack\fR; its type is \fBlisten\fR; if necessary, it will restart three
384 times before failing; its administrative command is \fBnlsadmin\fR; and the
385 configuration script to be read is in the file \fBscript\fR:
388 .in +2
390 \fBsacadm \fR\fB-a\fR\fB \fR\fB-p\fR\fB npack \fR\fB-t\fR\fB listen \fR\fB-c\fR\fB /usr/lib/saf/listen npack\fR
391 \fB\fR\fB-v\fR\fB `nlsadmin \fR\fB-V\fR\fB` \fR\fB-n\fR\fB 3 \fR\fB-z\fR\fB script\fR
393 .in -2
398 Remove a port monitor whose tag is \fBpmtag\fR:
401 .in +2
403 \fBsacadm\fR \fB-r\fR \fB-p\fR \fBpmtag\fR
405 .in -2
410 Start the port monitor whose tag is \fBpmtag\fR:
413 .in +2
415 \fBsacadm\fR \fB-s\fR \fB-p\fR \fBpmtag\fR
417 .in -2
422 Stop the port monitor whose tag is \fBpmtag\fR:
425 .in +2
427 \fBsacadm\fR \fB-k\fR \fB-p\fR \fBpmtag\fR
429 .in -2
434 Enable the port monitor whose tag is \fBpmtag\fR:
437 .in +2
439 \fBsacadm\fR \fB-e\fR \fB-p\fR \fBpmtag\fR
441 .in -2
446 Disable the port monitor whose tag is \fBpmtag\fR:
449 .in +2
451 \fBsacadm\fR \fB-d\fR \fB-p\fR \fBpmtag\fR
453 .in -2
458 List status information for all port monitors:
461 .in +2
463 \fBsacadm\fR \fB-l\fR
465 .in -2
470 List status information for the port monitor whose tag is \fBpmtag\fR:
473 .in +2
475 \fBsacadm\fR \fB-l\fR \fB-p\fR \fBpmtag\fR
477 .in -2
482 List the same information in condensed format:
485 .in +2
487 \fBsacadm\fR \fB-L\fR \fB-p\fR \fBpmtag\fR
489 .in -2
494 List status information for all port monitors whose type is \fBlisten\fR:
497 .in +2
499 \fBsacadm\fR \fB-l\fR \fB-t\fR \fBlisten\fR
501 .in -2
506 Replace the per-port monitor configuration script associated with the port
507 monitor whose tag is \fBpmtag\fR with the contents of the file
508 \fBfile.config\fR:
511 .in +2
513 \fBsacadm\fR \fB-g\fR \fB-p\fR \fBpmtag\fR \fB-z\fR \fBfile.config\fR
515 .in -2
518 .SH FILES
520 .ne 2
522 \fB\fB/etc/saf/_sactab\fR\fR
524 .RS 26n
529 .ne 2
531 \fB\fB/etc/saf/_sysconfig\fR\fR
533 .RS 26n
538 .ne 2
540 \fB\fB/etc/saf/\fIpmtag\fR\fR\fB/_config\fR\fR
542 .RS 26n
546 .SH SEE ALSO
549 \fBpmadm\fR(1M), \fBsac\fR(1M), \fBdoconfig\fR(3NSL), \fBattributes\fR(5)