Operating System - HP-UX
1845917 Members
3955 Online
110250 Solutions
New Discussion

HP model printer scripts question

 
SOLVED
Go to solution
Adrian Williams
New Member

HP model printer scripts question

I've installed a HP2200DTN using the HP printers model print script.

I now wanted to modify the print characteristics, which I know are held in the /etc/lp/interface/model.orig.

I can vi the appropriate print script but don't know what all the various options mean. Where can I find this information. The man pages didn't seemt oreveal a great deal.

Thanks for any help.
Trueno
4 REPLIES 4
Steve Steel
Honored Contributor
Solution

Re: HP model printer scripts question

Hi


Which manpage did you look at

man like

net_ljx000(1) net_ljx000(1)

NAME
net_ljx000 - HP JetAdmin model script

SYNOPSIS
lp [ -o option [ -o option ] ...]


Is all there is

export MANPATH=/opt/hpnpl/man:$MANPATH

and you have a man page per model.


What exactly are you looking for.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Bill Hassell
Honored Contributor

Re: HP model printer scripts question

The man page is net_ljx000 and covers the various options. The majority of options are designed for simple ASCII text files. And as you might expect, they are very dependent on the printer's language (PCL). Usually when you need to modify the default settings for a printer, it's due to applications that do not allow lp command line options.

While you can modify the script to (for example) always print in landscape mode, it will be true for every job to that printer. But since you are using a JetDirect interface in the printer, you can create multiple print queues on HP-UX, each one with a different set of defaults. To simplify adding another primnt queue, use the addqueue command as in:

addqueue -h IP-addr -q queue-name

(addqueue is located in /opt/hpnpl/bin) Then modify each new script in the interface/model.orig directory.


Bill Hassell, sysadmin
Adrian Williams
New Member

Re: HP model printer scripts question

Actually just man lp ... that'll be why, I'll try what you guys have suggested and see what I can find there ... new to all this ....

Thanks.
Trueno
Bill Hassell
Honored Contributor

Re: HP model printer scripts question

Th lp command has no information about -o options since these are part of the model script. man pages for model scripts are only available for JetDirect scripts. The rest of the scripts in the /usr/lib/lp/model directory must be read and compared too technical reference manuals for each printer to figure out special options.


Bill Hassell, sysadmin