[Next] [Previous] [Up] [Top] [Contents]

25.2.4 Printer Configuration

25.2.4.4 Installing a Remote Printer

To install a remote printer you need to register the remote host with the print service on both the clients and server and configure the network listener on the print server. The file hosts.lpd is no longer used. Use the lpsystem command to register the print clients with the print service. lpsystem inserts a one line entry in /etc/lp/Systems describing the service.

SunOS 4.X/BSD Clients to Solaris 2 Server

1. Register the service
# lpsystem -t bsd print_server_name
where
-t specifies the remote system type, either s5 or bsd

Create an instance of the listen port monitor to monitor the network for print requests
# sacadm -a -p tcp -t listen -c "/usr/lib/saf/listen tcp" -v 'nlsadmin -V'

Obtain the print server's universal address in hex
# lpsystem -A
00020203809274040000000000000000
where the first four digits, 0002, represent the internet protocol family, the next four, either 0203 or 0ACE, represent the BSD printer port (515 -> 20316) or System V listen port (2766-> 0ACE16), respectively, the next 8 digits, 80927404, represent the hex IP address of the server (replaced by zeroes in later versions of SunOS 5.X), and the final 16 zeroes are padding.

Configure the listenBSD service to monitor incoming requests from BSD clients
# pmadm -a -p tcp -s lpd -i root -v 'nlsadmin -V' -m 'nlsadmin -o /
var/spool/lp/fifos/listenBSD -A "\00020203809274040000000000000000"'

Solaris 2/System V Clients to Solaris 2 Server

1. Register the service
# lpsystem -t s5 print_server_name

Create an instance of the listen port monitor to monitor the network for print requests, if necessary. If you're already monitoring the network through the previous example you don't want to create a new listener.
# sacadm -a -p tcp -t listen -c "/usr/lib/saf/listen tcp" -v 'nlsadmin -V'

Add the service to identify the STREAM used by the lp print service to receive connection requests
# pmadm -a -p tcp -s lp -i root -v 'nlsadmin -V' -m 'nlsadmin -o /var/spool/lp/fifos/listenS5'

Add the service 0, which is the nlps server, to use the System V listen address for print requests, 0ACE
# pmadm -a -p tcp -s 0 -i root -v 'nlsadmin -V' -m 'nlsadmin -c /usr/lib/saf/nlps_server -A "\00020ACE809274040000000000000000"'

Add the BSD lpd service to the print server. (This step appears to be a bug, which may change in future versions. There's no obvious reason why the service should be required to listen at both ports inorder to work, but appears to be necessary in practice.)
# pmadm -a -p tcp -s lpd -i root -v 'nlsadmin -V' -m 'nlsadmin -o /
var/spool/lp/fifos/listenBSD -A "\00020203809274040000000000000000"'

SunOS 4.X/BSD Clients to Solaris 2 Server
Solaris 2/System V Clients to Solaris 2 Server

Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]