» Sign-in with HP Passport | » Register
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
Search:
More options
 
hp.com home


HP Support document

» 

Business Support Center

HP Passport Sign-in

User ID:
Password:
» Register
» Learn more...

Tasks

» Download drivers and software
» Troubleshoot a problem
» Setup, install, and configure
» Discover and use a product
» Perform regular maintenance
» Upgrade and migrate
» Recycle and dispose
»

Resources

» Customer Self Repair
» Diagnose problem or Chat (HP Instant Support)
» Support Forums
» Manuals
» Guided troubleshooting
» Submit a support case
» See more...
» Help
» Site map
» IT Resource Center

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
  1. Type: lpadmin -p queue_name -v /dev/null
  2. Type: lpadmin -p queue_name -i /usr/lib/lp/model/netstandard
  3. 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.
  4. Type: enable queue_name
  5. 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
  1. Log in as root on the Solaris 2.x host.
  2. 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.
  3. 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
  4. 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
  5. Type the following, then press Enter:
    accept PrinterName
  6. 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.
  1. Launch admintool by typing admintool at a prompt.
  2. Click Printers from the Browse menu option.
  3. Click Add , then click Access to Printer from the Edit menu option.
  4. In the new window that pops up, type IP destination name in the Printer field.
  5. Type the hostname or IP address of the Jetdirect in the Print Server field.
  6. 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
  7. Save all settings and close admintool.
  8. 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.
  9. If the file prints correctly, the configuration is complete. Click here for additional information if the print job stair-steps .
    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.

   Content feedback
To help us improve our content, please provide your feedback below.

1. How does the information on this page help you?

   very helpful somewhat helpful not helpful
 

2. Was it easy to find this document?

   easy not easy

3. If you selected not easy for question 2, in which section did you expect to find it?

     

4. Comments:

 
 
- Your feedback will be used to improve our content. Please note this form is for feedback only, so you will not receive a response.
Contact HP if you need technical assistance.

Printable versionPrintable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2010 Hewlett-Packard Development Company, L.P.