This chapter includes reference information for administration of the Service Access Facility.
The SAF uses configuration files that can be modified by using the sacadm and pmadm commands. You should not need to manually edit the configuration files.
File Name |
Description |
---|---|
|
Per-system configuration script. |
|
The SAC's administrative file that contains configuration data for the port monitors that the SAC controls |
|
Home directory for port monitor |
|
Per-port monitor configuration script for port monitor |
|
Port monitor |
|
Per-service configuration script for service |
|
The SAC's log file |
|
Directory for files created by |
The information in the /etc/saf/_sactab
file is
as follows:
# VERSION=1 zsmon:ttymon::0:/usr/lib/saf/ttymon #
# VERSION=1
Indicates the Service Access Facility version number.
zsmon
Is the name of the port monitor.
ttymon
Is the type of port monitor.
::
Indicates whether the following two flags are set:
d — Do not enable the port monitor.
x — Do not start the port monitor. No flags are set in this example.
0
Indicates the return code value. A return count of 0
indicates
that the port monitor is not be restarted if the port monitor fails.
/usr/lib/saf/ttymon
Indicates the port monitor path name.
The /etc/saf/
pmtab/_pmtab
file,
such as /etc/saf/zsmon/_pmtab
, is similar to the following:
# VERSION=1 ttya:u:root:reserved:reserved:reserved:/dev/term/a:I::/usr/bin/login::9600: ldterm,ttcompat:ttya login\: ::tvi925:y:#
# VERSION=1
Indicates the Service Access Facility version number.
ttya
Indicates the service tag.
x,u
Identifies whether the following flags are set:
x — Do not enable the service.
u — Create a utmpx
entry for the
service.
root
Indicates the identity assigned to the service tag.
reserved
This field is reserved for future use.
reserved
This field is reserved for future use.
reserved
This field is reserved for future use.
/dev/term/a
Indicates the TTY port path name.
/usr/bin/login
Identifies the full path name of the service to be invoked when a connection is received.
:c,b,h,I,r:
Indicates whether the following flags are set:
c
— Sets the connect on carrier flag for the
port.
b
— Sets the port as bidirectional, allowing
both incoming and outgoing traffic.
h
— Suppresses an automatic hangup immediately
after an incoming call is received.
I
— Initializes the port.
r
— Forces ttymon
to wait
until it receives a character from the port before ttymon prints
the login:
message.
9600
Identifies the TTY label defined in the /etc/ttydefs
file.
ldterm,ttcompat
Identifies the STREAMS modules to be pushed.
ttya login\:
Identifies the prompt to be displayed.
:y/n:
Indicates yes or no response.
message
Identifies any inactive (disabled) response message.
tvi925
Identifies the terminal type.
y
Indicates whether the software carrier is set (y
/n
).
The sacadm command controls the states of services. The following table describes the possible states of services.
State |
Description |
---|---|
Enabled |
Default state – When the port monitor is added, the service operates. |
Disabled |
Default state – When the port monitor is removed, the service stops. |
To determine the state of any particular service, use the following:
#pmadm -l -p
portmon-name
-s
svctag
The sacadm command controls the states of the ttymon
and listen
port monitors. The following
table describes the possible port monitor states.
State |
Description |
---|---|
|
Default state – When the port monitor is added, it is automatically started. |
|
Default state – When the port monitor is added, it is automatically ready to accept requests for service. |
|
Default state – When the port monitor is removed, it is automatically stopped. |
|
Default state – When the port monitor is removed, it automatically continues existing services and refuses to add new services. |
|
Intermediate state – The port monitor is in the process of starting. |
|
Intermediate state – The port monitor has been manually terminated, but it has not completed its shutdown procedure. The port monitor is on the way to becoming stopped. |
|
Inactive state – The port monitor has been
killed. All ports previously monitored are inaccessible. An external user
cannot tell whether a port is |
|
Inactive state – The port monitor is unable to start and remain running. |
To determine the state of any particular port monitor, use the following command:
#sacadm -l -p
portmon-name
Ports can be enabled or disabled depending on the state of the port monitor that controls the ports.
State |
Description |
---|---|
Serial ( | |
|
The |
|
Default state of all ports if |