Previous Table of Contents Next


SAF Control of Port Monitors and Services

You use three SAF commands to administer modems and alphanumeric terminals: sacadm, pmadm, and ttyadm.

The sacadm command adds and removes port monitors. This command is your main link with the Service Access Controller (SAC) and its administrative file (/etc/saf/_sactab).

The pmadm command adds or removes a service and associates a service with a particular port monitor.

The ttyadm command formats information for inclusion in various SAF administrative files. A ttyadm command often is embedded within a sacadm or pmadm command to provide some of the data needed by those commands. Table 3-15 lists the programs associated with specific SAF functions. See the manual pages for more information about each command.

Table 3-15 SAF Functions and Associated Programs

Function Program Description
Overall administration sacadm Command for adding and removing port monitors
Service Access Controller sac SAF's master program
Port monitors ttymon Monitors serial port login requests
listen Monitors requests for network services
Port monitor service administrator pmadm Command for controlling port monitors' services
Services logins; remote procedure calls; other Services to which SAF provides access

Setting Up Printer Port Monitors

This section provides steps for setting up port monitors for printing. Each SunOS 5.x print server and print client must have the port monitor configured to be able to handle network printing requests. If you use the Printer Manager (available with SunOS 5.1), you do not need to follow these steps. The Printer Manager automatically sets up the port monitors as part of the printer configuration process:

1.  Become superuser.
2.  Type sacadm -a -p tcp -t listen -c "/usr/lib/saf/listen tcp" -v 'nlsadmin -V' -n 9999 and press Return. The network listen service that listens for incoming TCP/ IP requests is started. The options are described in Table 3-16.
Table 3-16 The sacadm Command Options

Option Description
-a Adds the -p port
-t Identifies the type of service
-c Tells which command to use to start the port monitor
-v Indicates the version of the network listen process
-n Specifies the number of times the Service Access Controller will restart the process, if it dies

3.  Type sacadm -l and press Return. Look at the output to verify that the network listen status is enabled, as shown in this example:
# sacadm -l
PMTAG       PMTYPE    FLGS RCNT STATUS    COMMAND
tcp         listen     -    9999 ENABLED   /usr/lib/saf/listen tcp #


NOTE:  It may take several minutes before the network listen service is enabled.
4.  Type lpsystem -A and press Return. The system's universal address is displayed, as shown in this example:
   # lpsystem -A
   ØØØ2Ø2Ø3819418ØeØØØØØØØØØØØØØØØØ

The universal address has four parts, as shown in Figure 3-15. The last part, RFU, means Reserved for Future Use and could be used for other families of addresses (for example, Open Systems Interface) in the future.


Figure 3-15  Parts of the universal address.

The first four digits identify the Internet family. The fifth through eighth digits identify the TCP port. For the modified version, replace the fifth through eighth digits with 0ACE. For example, the modified version of the universal address shown in the example above is:

ØØØ2ØACE819418ØeØØØØØØØØØØØØØØØØ


NOTE:  You must type the characters x at the beginning of the universal (or modified universal) address in the next steps exactly as shown. In addition, the address must be enclosed in single quotation marks so the backslash is not stripped off.


Previous Table of Contents Next