Previous Table of Contents Next


Follow these additional steps on Solaris 2.x print clients only if you want to set up the SAF. You do not need to do any additional configuration for a SunOS 4.x print client.

1.  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 TCP/IP requests is started.
2.  Type sacadm -l and press Return. When the network listen service is starting, the following information appears:
# 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.
3.  Type lpsystem -A and press Return. The system's universal address appears. You use the universal address, or a modified version of it, to configure the port monitors. The first four digits identify the Internet family. The fifth through eighth digits identify the TCP port. For the modified version, replace port number 0203 with 0ACE. (The first digit is a zero.)

Table 11-9 lists the variable input to the pmadm command used to configure the three listen port monitors.

Table 11-9 Variable Input to the pmadm Command Options

type Value nlscmd Value
lp nlsadmin -o /var/spool/lp/fifos/listenS5
lpd nlsadmin -o /var/spool/lp/fifos/listenBSD -A 'xaddress'
0 nlsadmin -c /usr/lib/saf/nlps server -A 'xmodified address'


NOTE:  Type x at the beginning of the universal (or modified universal) address in the next step exactly as shown. In addition, be sure to enclose the address in single quotation marks so as to avoid stripping off the backslash.
4.  Type pmadm -a -p tcp -s type -i root -m `nlscmd` -v `nlsadmin -V` and press Return. Repeat the command for each of the three types. The port monitor is configured to listen to requests from the LP print service.
5.  Type cat /var/saf/tcp/log and press Return. Examine the messages on-screen to make sure that the services have been enabled and initialized.

The following example shows the steps for setting up a Solaris 2.x print client oak to print on pinecone, which is connected to the Solaris 2.x print server pine. Beginning with the lpsystem command, you would perform the same steps on other print clients such as ash, elm, and maple to let them become print clients of pine. You must tell each client system about the print server and the characteristics of its printer.

oak% rlogin pine
pine% lpstat -p pinecone -l
printer pinecone is idle. enabled since Wed Jan 2 18:2Ø:22 PST
 1991. available.
     Content types: PS
     Printer types: PS
     Description:
     Users allowed:
         (all)
     Forms allowed:
         (none)
     Banner not required
     Character sets:
         (none)
     Default pitch:
     Default page size:
pine% su
# lpsystem -t s5 oak
"oak" has been added.
pine% logout
oak% su
# lpsystem -t s5 pine
"pine" has been added.
# lpadmin -p pinecone -s pine -T PS -I PS
# cd /etc/lp/fd
# lpfilter -f download -F download.fd
# lpfilter -f dpost -F dpost.fd
# lpfilter -f postio -F postio.fd
# lpfilter -f postior -F postior.fd
# lpfilter -f postprint -F postprint.fd
# lpfilter -f postreverse -F postreverse.fd
# accept pinecone
destination "pinecone" now accepting requests
# enable pinecone
printer "pinecone" now enabled
# lpadmin -p pinecone -D "PostScript Laser printer in Building 5,
 Room 262"
# lpadmin -d pinecone
# lpstat -t
scheduler is running
system default destination: pinecone
system for pinecone: pine
pinecone accepting requests since Mon Mar 4 15:15:21 PST 1991
printer pinecone is idle. enabled since Mon Mar 4 15:15:26 PST
 1991. available.
# lpsystem -A
ØØØ2Ø2Ø3819418ØeØØØØØØØØØØØØØØØØ
# pmadm -a -p tcp -s lp -i root -m `nlsadmin -o
 /var/spool/lp/fifos/listenS5`
-v `nlsadmin -V`
# pmadm -a -p tcp -s lpd -i root -m `nlsadmin -o
 /var/spool/lp/fifos/listenBSD
-A
'xØØØ2Ø2Ø3819418ØeØØØØØØØØØØØØØØØØ'` -v `nlsadmin -V`
# pmadm -a -p tcp -s Ø -i root -m `nlsadmin -c /usr/lib/saf/nlps_server
 -A
'xØØØ2Ø2ØACE819418ØeØØØØØØØØØØØØØØØØ'` -v `nlsadmin -V`
pine# cat /var/saf/tcp/log
1Ø/28/91 1Ø:22:51; 178; †(#)listen:listen.c     1.19.9.1
1Ø/28/91 1Ø:22:51; 178; Listener port monitor tag: tcp
1Ø/28/91 1Ø:22:51; 178; Starting state: ENABLED
1Ø/28/91 1Ø:22:51; 178; Service Ø: fd 6 addr
 xØØØ2ØACE819418ØeØØØØØØØ000000000
1Ø/28/91 1Ø:22:51; 178; Service lpd: fd 7 addr
 xØØØ2Ø2Ø3819418ØeØØØØØØØ000000000
1Ø/28/91 1Ø:22:52; 178; Net opened, 2 addresses bound, 56 fds free
1Ø/28/91 1Ø:22:52; 178; Initialization Complete
# lp /etc/passwd
request id is pinecone-23


Previous Table of Contents Next