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 8 "Sep 14, 1992"
9 sacadm \- service access controller administration
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]
19 \fBsacadm\fR \fB-r\fR \fB-p\fR \fIpmtag\fR
24 \fBsacadm\fR \fB-s\fR \fB-p\fR \fIpmtag\fR
29 \fBsacadm\fR \fB-k\fR \fB-p\fR \fIpmtag\fR
34 \fBsacadm\fR \fB-e\fR \fB-p\fR \fIpmtag\fR
39 \fBsacadm\fR \fB-d\fR \fB-p\fR \fIpmtag\fR
44 \fBsacadm\fR \fB-l\fR [\fB-p\fR \fIpmtag\fR | \fB-t\fR \fItype\fR]
49 \fBsacadm\fR \fB-L\fR [\fB-p\fR \fIpmtag\fR | \fB-t\fR \fItype\fR]
54 \fBsacadm\fR \fB-g\fR \fB-p\fR \fIpmtag\fR [\fB-z\fR \fIscript\fR]
59 \fBsacadm\fR \fB-G\fR [\fB-z\fR \fIscript\fR]
64 \fBsacadm\fR \fB-x\fR [\fB-p\fR \fIpmtag\fR]
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:
77 adds or removes a port monitor
83 starts or stops a port monitor
89 enables or disables a port monitor
95 installs or replaces a per-system configuration script
101 installs or replaces a per-port monitor configuration script
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.
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.
137 \fB\fB-c\fR \fIcmd\fR\fR
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.
150 Disable the port monitor \fIpmtag\fR.
159 Enable the port monitor \fIpmtag\fR.
165 \fB\fB-f\fR \fBdx\fR\fR
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.
179 Do not enable the new port monitor.
188 Do not start the new port monitor.
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
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
229 Stop port monitor \fIpmtag\fR.
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
252 The \fB-L\fR option is identical to the \fB-l\fR option except that the output
253 appears in a condensed format.
259 \fB\fB-n\fR \fIcount\fR\fR
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.
270 \fB\fB-p\fR \fIpmtag\fR\fR
273 Specifies the tag associated with a port monitor.
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.
295 Start a port monitor. The SAC starts the port monitor \fIpmtag\fR.
301 \fB\fB-t\fR \fBtype\fR\fR
304 Specifies the port monitor type.
310 \fB\fB-v\fR \fBver\fR\fR
313 Specifies the version number of the port monitor. This version number may be
318 \fB\fR\fB-v\fR\fB `\fR\fIpmspec\fR \fB-V\fR`
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
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.
344 \fB\fB-y\fR \fIcomment\fR\fR
347 Include \fIcomment\fR in the \fB_sactab\fR entry for port monitor \fIpmtag\fR.
353 \fB\fB-z\fR \fBscript\fR\fR
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).
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
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:
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
398 Remove a port monitor whose tag is \fBpmtag\fR:
403 \fBsacadm\fR \fB-r\fR \fB-p\fR \fBpmtag\fR
410 Start the port monitor whose tag is \fBpmtag\fR:
415 \fBsacadm\fR \fB-s\fR \fB-p\fR \fBpmtag\fR
422 Stop the port monitor whose tag is \fBpmtag\fR:
427 \fBsacadm\fR \fB-k\fR \fB-p\fR \fBpmtag\fR
434 Enable the port monitor whose tag is \fBpmtag\fR:
439 \fBsacadm\fR \fB-e\fR \fB-p\fR \fBpmtag\fR
446 Disable the port monitor whose tag is \fBpmtag\fR:
451 \fBsacadm\fR \fB-d\fR \fB-p\fR \fBpmtag\fR
458 List status information for all port monitors:
463 \fBsacadm\fR \fB-l\fR
470 List status information for the port monitor whose tag is \fBpmtag\fR:
475 \fBsacadm\fR \fB-l\fR \fB-p\fR \fBpmtag\fR
482 List the same information in condensed format:
487 \fBsacadm\fR \fB-L\fR \fB-p\fR \fBpmtag\fR
494 List status information for all port monitors whose type is \fBlisten\fR:
499 \fBsacadm\fR \fB-l\fR \fB-t\fR \fBlisten\fR
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
513 \fBsacadm\fR \fB-g\fR \fB-p\fR \fBpmtag\fR \fB-z\fR \fBfile.config\fR
522 \fB\fB/etc/saf/_sactab\fR\fR
531 \fB\fB/etc/saf/_sysconfig\fR\fR
540 \fB\fB/etc/saf/\fIpmtag\fR\fR\fB/_config\fR\fR
549 \fBpmadm\fR(8), \fBsac\fR(8), \fBdoconfig\fR(3NSL), \fBattributes\fR(5)