vicker313 tech blog

June 25, 2009

Add header to printout in HPUX using JetDirect

Filed under: HPUX — Tags: , , , — vicker313 @ 8:00 am

In HPUX, we use LP command to print text file, for example lp -dprt1 printme.txt, where prt1 is the LP destination name (or also known as queue name) and printme.txt is the file to be printed.

If the print server used is a HP JetDirect, we can set the printout header using the HPPI utility:

  1. Install the HP JetDirect  Installer (in HPUX 11iv3, the installation file is named as HP11e134.SD).
  2. Then copy /usr/spool/lp/model/hp2560 to /opt/hpnpl/sh.
  3. Run HPPI (HP Printer Installer) by typing hppi or /opt/hpnpl/bin/hppi.
  4. Select option 1 (Spooler Administration) then option 1 again (Add printer to local spooler).
  5. Type in print server IP address.
  6. Type in the LP destination name (option 1) then select option 5 (additional printer configuration).
  7. Type in hp2560 in Model Script (option 1, there is actually a list of model script for you to select but you won’t find hp2560 in the list) then continue for the rest.
  8. Finally you can find a file named exactly like the queue name in /etc/lp/interface/model.orig. You can add or modify a function called do_banner() in order to add a customized printout header.
Advertisements

1 Comment »

  1. […] header to printout in HPUX using not JetDirect This post is continue from Add header to printout in HPUX using JetDirect, if you’re not using JetDirect but other print server such as DLINK, you might use method […]

    Pingback by Add header to printout in HPUX using not JetDirect « vicker313 tech blog — July 1, 2009 @ 8:23 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: