Installation guide
settings that are relevant to the serial port driver. These are
ignored by the network socket driver.
b. Configure the services database. You must register a service name
and tcp port number (socket number) in the /etc/services
database file. Enter the socket number that you determined when
you configured the printer in step 1 and associate it with a service
name of your choice. For example, to configure the services
database for a DEClaser 3500, you would add the following line to
the /etc/services file:
declaser3500 10001/tcp
Note that the user-defined declaser3500 string represents the
service; it is the same string that you would have entered as the
servicename
in the /etc/printcap file in step 2a. After saving
the changes to the /etc/services file, restart the inetd daemon
to reload the /etc/services file with the printer information
you just added. To do this, type the following command:
# rcinet restart
This stops and restarts the Internet network services on your
system.
c. Configure the remote hosts database. The
nodename
value that
you specified as part of the lp variable value in the
/etc/printcap file must be known by your local host’s network
management services; therefore, you must enter the
nodename
and its network address in the /etc/hosts database file. If you
are running a BIND server for remote host names, you do not
necessarily need to add the printer’s node name to the
/etc/hosts file, though if there is ever a problem with the BIND
server, an entry in /etc/hosts would allow for local resolution of
the host name.
10.9.2 Using TCP/IP Printing
Once configured, TCP/IP printing is used like local and remote printing.
From the command line, execute the lpr command specifying the node
name of the printer, command options, and file names.
10.9.3 Known Restrictions on the Use of TCP/IP Printing
TCP/IP printing works when printing within a local subnet; however,
printing in complex networks across one or more routers may cause
reliability problems.
10–34 Administering the Print Services