Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 9 of 21

HP JetDirect Print Servers (600N/400N/500X/300X) Administrator's Guide: Configuring for LPD Printing, pages 63 to 71

Pages 63 to 71 of 164, from HP JetDirect Print Servers (600N/400N/500X/300X) Administrator's Guide

The original document is the PDF (2.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the HP J3263A JetDirect 300X

Page 63

4 Configuring for LPD Printing Introduction The HP JetDirect print server contains an LPD (Line Printer Daemon) Server module to support LPD printing. This chapter describes how to configure the HP JetDirect print server for use with various systems that support LPD printing. These instructions include: LPD on UNIX Systems Configuring BSD-based UNIX systems using LPD ■ Configuring print queues using the SAM utility (HP-UX systems) ● LPD on Windows NT/2000 Systems ● LPD on Mac OS Systems ●

■

EN

57

Page 64

About LPD Line Printer Daemon (LPD) refers to the protocol and programs associated with line-printer spooling services that may be installed on various TCP/IP systems. Some of the widely used systems in which the HP JetDirect print server functionality supports LPD include: Berkeley-based (BSD) UNIX systems HP-UX Solaris ● IBM AIX ● Linux ● Windows NT/2000 ● Mac OS ● ● ●

The UNIX configuration examples in this section show the syntax for BSD-based UNIX systems. The syntax for your system may vary. See your system documentation for the correct syntax. Note

The LPD functionality can be used with any host implementation of LPD that complies with the RFC 1179 document. The process for configuring printer spoolers, however, may differ. See your system documentation for information on configuring these systems.

58 Configuring for LPD Printing

EN

Page 65

The LPD programs and protocol include the following: Table 4.1

LPD Programs and Protocols

Program Name

Purpose of Program lpr

Queues jobs for printing lpq

Displays print queues lprm

Removes jobs from print queues lpc

Controls print queues lpd

Scans and prints the files if the specified printer is connected to the system. If the specified printer is connected to another system, this process forwards the files to an lpd process on the remote system where the files are to be printed.

Requirements for Configuring LPD Before you can use LPD printing, your printer must be properly connected to the network through the HP JetDirect print server, and you must have print server status information. This information is listed on the HP JetDirect printer configuration page. If you have not printed a configuration page from your printer, see the hardware installation guide for your print server or your printer’s getting started guide for instructions. You must also have the following: ●

An operating system that supports LPD printing.

●

Superuser (root) or Administrator access to your system.

EN

Configuring for LPD Printing 59

Page 66

●

The LAN hardware address (or station address) of the print server. This address is printed with print server status information on the HP JetDirect configuration page and is of the form: LAN HW ADDRESS: xxxxxxxxxxxx where x is a hexadecimal digit (for example, 001083123ABC).

●

An IP address configured on the HP JetDirect print server.

LPD Setup Overview The following steps are necessary to configure the HP JetDirect print server for LPD printing: 1. Setting up IP parameters. 2. Setting up print queues. 3. Printing a test file. The following sections provide detailed descriptions for each step.

Step 1. Setting Up IP Parameters To set up IP parameters on the HP JetDirect print server, refer to chapter 3. For more information on TCP/IP networks, refer to appendix A.

60 Configuring for LPD Printing

EN

Page 67

Step 2. Setting Up Print Queues You must set up a print queue for each printer or printer personality (PCL or PostScript) you use on your system. Also, different queues are required for formatted and unformatted files. The queue names text and raw in the following examples (see rp tag) have special meanings. Table 4.2

Supported Queue Names raw, raw1, raw2, raw3 no processing text, text1, text2, text3 carriage return added auto, auto1, auto2, auto3 automatic

The line printer daemon on the HP JetDirect print server treats data in the text queue as unformatted text or ASCII, and adds a carriage return to each line before sending it to the printer. (Note that the actual observed behavior is that a PCL line termination command (value of 2) is issued at the beginning of the job.) The line printer daemon treats data in the raw queue as formatted files in PCL, PostScript, or HP-GL/2 languages and sends the data without change to the printer. Data in the auto queue will be automatically processed as text or raw, as appropriate. If the queue name is not one of the above, the HP JetDirect print server assumes it to be raw1.

Step 3. Printing a Test File Print a test file using the LPD commands. For instructions, see the information provided for your system.

EN

Configuring for LPD Printing 61

Page 68

LPD on UNIX Systems Configuring Print Queues for BSD-based Systems Edit the /etc/printcap file to include the following entries: printer_name|short_printer_name:\ :lp=:\ :rm=node_name:\ :rp=remote_printer_name_argument:\ (this should be text, raw, or auto) :lf=/usr/spool/lpd/error_log_filename:\ :sd=/usr/spool/lpd/printer_name: where printer_name identifies the printer to the user, node_name identifies the printer on the network, and remote_printer_name_argument is the print queue designation. For more information on printcap see the printcap man page. Example 1 (suggested name for an ASCII or text printer): lj1_text|text1:\ :lp=:\ :rm=laserjet1:\ :rp=text:\ :lf=/usr/spool/lpd/lj1_text.log:\ :sd=/usr/spool/lpd/lj1_text: Example 2 (suggested name for PostScript, PCL, or HP-GL/2 printers): lj1_raw|raw1:\ :lp=:\ :rm=laserjet1:\ :rp=raw:\ :lf=/usr/spool/lpd/lj1_raw.log:\ :sd=/usr/spool/lpd/lj1_raw:

62 Configuring for LPD Printing

EN

Page 69

If your printer does not support automatic switching between PostScript, PCL, and HP-GL/2 languages, use the printer's control panel (if the printer has one) to select the printer language or rely on the application to select the printer language via commands embedded in the print data. Make sure your users know the printer names for the printers, since they must type those names on the command line for printing. Create the spooling directory by making the following entries. At the root directory, type: mkdir /usr/spool/lpd cd /usr/spool/lpd mkdir printer_name_1 printer_name_2 chown daemon printer_name_1 printer_name_2 chgrp daemon printer_name_1 printer_name_2 chmod g+w printer_name_1 printer_name_2 where printer_name_1 and printer_name_2 refer to the printers to be spooled. You may spool several printers. The following example shows the command to create the spooling directories for printers used for text (or ASCII) printing and for PCL or PostScript printing. Example: mkdir /usr/spool/lpd cd /usr/spool/lpd mkdir lj1_text lj1_raw chown daemon lj1_text lj1_raw chgrp daemon lj1_text lj1_raw chmod g+w lj1_text lj1_raw

EN

Configuring for LPD Printing 63

Page 70

Configuring Print Queues Using SAM (HP-UX systems) On HP-UX systems you can use the SAM utility to configure remote print queues for printing “text” (ASCII) files or “raw” (PCL, PostScript, or other printer language) files. Before you execute the SAM program, select an IP address for the HP JetDirect print server and set up an entry for it in the /etc/hosts file on your system running HP-UX. 1. Start the SAM utility as a superuser. 2. Select Peripheral Devices from the Main menu. 3. Select Printers/Plotters from the Peripheral Devices menu. 4. Select Printers/Plotters from the Printers/Plotters menu. 5. Select Add a Remote Printer from the Actions list, then select a printer name. Examples: my_printer or printer1 6. Select a remote system name. Example: jetdirect1 (node name of the HP JetDirect print server) 7. Select a remote printer name. Type text for ASCII or raw for PostScript, PCL, or HP-GL/2. 8. Check for a remote printer on a BSD system. You must type Y. 9. Click OK at the bottom of the menu. If the configuration is successful, the program prints the message: The printer has been added and is ready to accept print requests.

64 Configuring for LPD Printing

EN

Page 71

10. Click OK and select Exit from the List menu. 11. Select Exit Sam. Note

By default, the lpsched is not running. Make sure you turn the scheduler on when you set up your print queues.

Printing a Test File To verify that the printer and print server connections are correct, print a test file. 1. At the UNIX system prompt type: lpr -Pprinter_name file_name where printer_name is the designated printer and file_name refers to the file to be printed. Examples (for BSD-based systems): Text File: lpr -Ptext1 textfile PCL File: lpr -Praw1 pclfile.pcl PostScript File: lpr -Praw1 psfile.ps HP-GL/2 File: lpr -Praw1 hpglfile.hpg For HP-UX systems, substitute lp -d for lpr -P.

EN

Configuring for LPD Printing 65