 |
» |
|
 |
|
 |
 |
 |
|
|
HP Jetdirect Print Servers - Configuring LPD Printing on Sun Solaris
Introduction
This document describes how to configure the HP Jetdirect print server for use with Sun Solaris systems that have the Line Printer Daemon (LPD) installed.
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.
There are several different methods that could be used to print form Sun Solaris. Each is discussed below.
Configuring print queues using lpadmin for Solaris 2.6
Type: lpadmin -p queue_name
-v /dev/null
Type: lpadmin -p queue_name
-i /usr/lib/lp/model/netstandard
Type: lpadmin -p queue_name
-o dest=hostname
:text -o protocol=bsd -o timeout=time_in_seconds
|
NOTE:
|
On the "dest=hostname:xxxx" variable, use "raw" for PostScript®, HPG/L2, or other formatted files. Use "text" for unformatted ASCII files; this adds a carriage return/line feed termination command and will prevent the print from stair-stepping typical with UNIX ASCII text. For a HP Jetdirect three port external print server, use "raw1" or "text1" for parallel port one, "raw2" or "text2" for parallel port two and "raw3" or "text3" for port three.
Click here additional information on stair-stepping.
|
Type: enable queue_name
Type: accept queue_name
If the operating system is Solaris 2.6 or 7, the printer configuration may be stored in several different locations, depending on how the system is set up for "Naming Services;" therefore manually editing files is not an appropriate option. The best method of changing the remote printer name to "text" is the one of the following commands: lpset -a bsdaddr=IP address of Jetdirect
,text local lp destination name
lpset -n system|fns -a bsdaddr=IPaddress of Jetdirect
,text local lp destination name
For more information about these steps, refer to the man pages on the Solaris computer (at a system prompt, type “man lpadmin�?.
Configuring print queues using lpadmin for Solaris 2.51 or below
Log in as root on the Solaris 2.x host.
At the UNIX prompt, type:
lpsystem -t bsd host_name
The host_name
is the name in the etc/hosts file associated with the HP Jetdirect print server’s IP address. This command tells Solaris that the HP Jetdirect print server is a BSD-type system.
Type the following, then press ENTER:
lpadmin -p PrinterName
-s host_name
!raw
The PrinterName
following the -p is the printer or queue name on the Solaris station. If an error is returned, try using a forward slash in the syntax. For example:
lpadmin -p PrinterName
-s host_name
/!raw
|
NOTE:
|
Use "!raw" for PostScript, HPG/L2, or other formatted files. Use "!text" for unformatted ASCII files; this adds a carriage return/line feed termination command and will prevent the print from stair-stepping typical with UNIX ASCII text. For an HP Jetdirect three port external print server, use "!raw1" or "!text1" for parallel port one, "!raw2" or "!text2" for parallel port two and "!raw3" or "!text3" for port three.
Click here for additional information if the print job stair-steps
|
Type the following, then press Enter:
lpadmin -p PrinterName
-T unknown -I any
The "-T unknown" option tells Solaris that the printer type is unknown. The "-I any" option tells it that it can accept any type of print job. Type the following, then press Enter:
enable PrinterName
Type the following, then press Enter:
accept PrinterName
The HP Jetdirect print server is now configured for LPD printing. Use the following command to print:
lp -dPrinterName filename
For more information about these steps, refer to the man pages on the Solaris computer (at a system prompt, type “man lpadmin�?.
Configuring print queues using the admintool
|
NOTE:
|
Sun’s Web site says that admintool is not supported with network printers, therefore these steps are provided as a workaround only. |
Launch admintool by typing admintool at a prompt.
Click Printers
from the Browse
menu option.
Click Add
, then click Access to Printer
from the Edit
menu option.
In the new window that pops up, type IP destination name in the Printer field.
Type the hostname or IP address of the Jetdirect in the Print Server field.
If configuring an external multi-parallel port HP Jetdirect device, use the following lpset command to define the appropriate remote printer name:
lpset –a bsdaddr=IP address of Jetdirect,text1 local lp destination name
In place of text1, use raw1 for PostScript(R), HPG/L2, or other formatted files. (Use text for unformatted ASCII files; this adds a carriage return/line feed termination command and will prevent the print from stair-stepping typical with UNIX® ASCII text.)
Use text1 or raw1 for parallel port one, text2 or raw2 for parallel port two and text3 or raw3 for port three
Save all settings and close admintool.
Test printing using the following command:
lp -d destination name
filename
Where destination name
is the name entered in the Printer field and filename
is a simple text file.
-
|
NOTE:
|
One or more of the links above will take you outside the Hewlett-Packard Web site. HP does not control and is not responsible for information outside of the HP Web site. |
|
|