TCP/IP Configuration Chapter 6

6.2UNIX Printing

1.Open the /etc/printcap file. Make an entry naming the NIC as the remote host and PORT1 as the remote printer name. A typi- cal printcap entry is shown below:

<printer_name>:\

(for example, printer1)

:lp=:\

:rm=<remote_host>:\

(for example, name as entered in /etc/hosts)

:rp=PORT1:\

:sd=/usr/spool/lpd/<printer_name>:

(for example, spool directory on system used to spool data and control files)

This sends jobs spooled at /usr/spool/lpd/<printer_name> to the printer designated <printer_name> to be printed at port 1 (the inter- nal connection to the printer) of the NIC designated as <remote_host>.

2.Create the spooling directory. For example, type:

#mkdir /usr/spool/lpd/<printer_name>

3.To print via the spooler, use the lpr command. Type:

#lpr -P<printer_name> <file_name>

Installation and testing is done. You are now ready to print.

6.2.2.2Setting Up an AIX 2.5 Remote Printer to Use lpd

Set up a remote printer on the host that sends jobs to the NIC using the NIC’s lpd. Use the following procedure to do this:

1.At the prompt, type:

#smit spooler

2.When a window appears, select Manage Remote Printers.

3.When a menu appears, select Client Services.

4.Another menu appears. Select Remote Printer Queues.

5.Another menu appears. Select Add a Remote Queue.

6-18

Page 108
Image 108
Hitachi Koki USA DDC 35n user manual Setting Up an AIX 2.5 Remote Printer to Use lpd