HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

printing from tray2

 
SOLVED
Go to solution
Jim_beam
Occasional Contributor

printing from tray2

I need to print using lprng specifically to tray 2 from printer model HP LaserJet 8150DN. I tried using :

banner "test" | lp -d abc12b -o A4 -o tray2

but still prints from tray1. What is the command do i use to print from tray 2?
3 REPLIES
Matti_Kurkela
Honored Contributor
Solution

Re: printing from tray2

Some HP printer model scripts will print out a list of supported "lp -o ..." options if you run this command:

lp -d abc12b -ooptions
But since you say you're using LPRng instead of the standard HP-UX print spooler, the standard HP model scripts might not be used at all. In that case, the standard options to the "lp" command you see in any HP-UX documentation will not be applicable.

If you're using the "ifhp" filter that comes with the LPRng distribution, the correct option would be "intray2".

http://www-it.desy.de/systems/services/printing/howto/IFHP-HOWTO.html#AEN1436

The native printing command of LPRng is "lpr", not "lp". I would test with it first:

banner "test" | lpr -Pabc12b -Z intray2

Once this works, you can try with LPRng's "lp" compatibility layer. You may have to configure LPRng's lp option translation first:

http://www.lprng.com/LPRng-Reference/LPRng-Reference.html#AEN3834

MK
MK
Jim_beam
Occasional Contributor

Re: printing from tray2

thanks for your response

but how do i set that printing to this queue specifically goes to tray2 in /etc/printcap for instance

abc12b :
:tc=.jetdirect_hp5si
:cm=HP LaserJet 8150DN
:lp=abc12%9100
Jim_beam
Occasional Contributor

Re: printing from tray2

did not receive feedback from 2nd question will create a new thread.