Previous Table of Contents Next


An example of the end of the /var/saf/zsmon/log file is given next. This information shows more detailed information about how the ttymon port monitor zsmon was initialized successfully.

oak% tail /var/saf/zsmon/log
Thu Mar 25 2Ø:36:13 1993; 2Ø8; PMTAG: zsmon
Thu Mar 25 2Ø:36:13 1993; 2Ø8; Starting state: enabled
Thu Mar 25 2Ø:36:13 1993; 2Ø8; Got SC_ENABLE message
Thu Mar 25 2Ø:36:13 1993; 2Ø8; max open files = 1Ø24
Thu Mar 25 2Ø:36:13 1993; 2Ø8; max ports ttymon can monitor = 1Ø17
Thu Mar 25 2Ø:36:13 1993; 2Ø8; *ptr == Ø
Thu Mar 25 2Ø:36:13 1993; 2Ø8; SUCCESS
Thu Mar 25 2Ø:36:13 1993; 2Ø8; *ptr == Ø
Thu Mar 25 2Ø:36:13 1993; 2Ø8; SUCCESS
Thu Mar 25 2Ø:36:13 1993; 2Ø8; Initialization Completed
oak%

An example of the end of the /var/saf/tcp/log file follows:

seachild% tail /var/saf/tcp/log
Ø4/Ø6/93 15:11:1Ø; 183; Connect: fd 7, svctag lpd, seq 117, type passfd
Ø4/Ø6/93 15:11:12; 183; Connect: fd 7, svctag lpd, seq 118, type passfd
Ø4/Ø6/93 15:26:12; 183; Connect: fd 7, svctag lpd, seq 119, type passfd
Ø4/Ø6/93 15:26:13; 183; Connect: fd 7, svctag lpd, seq 12Ø, type passfd
Ø4/Ø6/93 15:34:Ø2; 183; Connect: fd 6, svctag Ø, seq 41, type exec
Ø4/Ø6/93 15:34:Ø3; 3391; NLPS (lp) passfd: /var/spool/lp/fifos/ listenS5
Ø4/Ø6/93 15:5Ø:1Ø; 183; Connect: fd 7, svctag lpd, seq 121, type passfd
Ø4/Ø6/93 15:5Ø:11; 183; Connect: fd 7, svctag lpd, seq 122, type passfd
Ø4/Ø6/93 16:Ø5:12; 183; Connect: fd 7, svctag lpd, seq 123, type passfd
Ø4/Ø6/93 16:Ø5:12; 183; Connect: fd 7, svctag lpd, seq 124, type passfd
seachild%


NOTE:  You should periodically clear out or truncate these log files. If you want cron to do the cleanup for you, create cron jobs by using the crontab(1) command. Refer to the crontab(1) manual page for more information.

Reference to SAF Commands, Tasks, and Options

The following sections provide a quick reference to the variables used in SAF commands; tasks performed with the sacadm and pmadm commands; and options for the sacadm, pmadm, ttyadm, and nlsadmin commands. Refer to Chapter 10 for step-by-step instructions on how to use the SAF commands to set up modems and terminals. Refer to Chapter 11 for step-by-step instructions on how to use the SAF commands to set up printers.

Quick Reference to SAF Variables

Table 9-5 describes the variables used with the SAF commands.

Table 9-5 Variables Used with the SAF Commands

Variable Example Description
pmtag zsmon The name of a specific instance of a port monitor.
svctag b The name of the port in the /dev/term directory.
dev-path /dev/term/b The full name of the tty port device file.
ttylabel 2400H The baud rate and line discipline from the /etc/ttydefs file.
type ventel The type of the modem, as specified in the /etc/uucp/Devices file.

Quick Reference to Service Access Control (sacadm)

Table 9-6 provides a task-oriented quick reference to the tasks you perform using the sacadm command.

Table 9-6 Quick Reference to the Service Access Controller

Task Command Syntax
Add a port monitor sacadm -a -p pmtag -t ttymon -c /usr/lib/saf/ttymon -v `ttyadm -V` -y "comment"
Disable a port monitor sacadm -d -p pmtag
Enable a port monitor sacadm -e -p pmtag
Kill a port monitor sacadm -k -p pmtag
List status information for a port monitor sacadm -l -p pmtag
Remove a port monitor sacadm -r -p pmtag
Start a port monitor sacadm -s -p pmtag
Add a listen port monitor sacadm -a -p pmtag -t listen -c /usr/lib/saf/listen -v `ttyadm -V` -y "comment"

Table 9-7 describes the options to the sacadm command.

Table 9-7 Options to sacadm Command

Option Description
a Add a port monitor.
p Specify an identifying port monitor tag (pmtag) for the port monitor.
t Specify the type of the port monitor--either ttymon or listen.
c Specify the commands used to start a port monitor.
v Specify the version number of the port monitor. Use ttyadm -V to find out the version number to use, or use `ttyadm -V` as an argument to the -v option.
f Specify one or both flags. The d flag specifies that the port monitor is not enabled. The x flag specifies that the port monitor is not started.


Previous Table of Contents Next