Operating System - HP-UX
1833790 Members
2821 Online
110063 Solutions
New Discussion

Printing A3 to Jetdirect card

 
SOLVED
Go to solution
MarkSyder
Honored Contributor

Printing A3 to Jetdirect card

Hi everybody.

I've set up a printer with a Jetdirect 600N card to print from an HP-UX 10.20 workstation. The printer (HP5000N) has two trays; an upper tray loaded with A4 and a lower tray with A3. I can't find an option in the interface file to print to the lower tray.

Any ideas?

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
8 REPLIES 8
Chris Wilshaw
Honored Contributor

Re: Printing A3 to Jetdirect card

I think the option you're looking for is

-olb

In the interface files, this is listed as

lb | lbin) # set up to feed from lower cassette
Alessandro Pilati
Esteemed Contributor

Re: Printing A3 to Jetdirect card

Mark,
you could use the -o tray1/tray2 option with the lp command.
See man lp for further information.

Hope this helps,
Alex
if you don't try, you'll never know if you are able to
MarkSyder
Honored Contributor

Re: Printing A3 to Jetdirect card

Thanks for the suggestions.

I went through the motions of trying them both even though those options didn't appear in the interface file. As I expected, it ignored them and printed from the A4 tray.

Any more ideas gratefully received.

Mark
The triumph of evil requires only that good men do nothing
Chris Wilshaw
Honored Contributor

Re: Printing A3 to Jetdirect card

Do you know what model the interface filter is for? If it's just a standard laserjet filter, then the options don't exist in the file (I guess the interface is so old that the concept of a second tray didn't exist when it was created).

You may need to copy the laserjet4 version over your interface (it goes without saying that you should back up the original first, but just in case....)

The laserjet4 interface can be found in /usr/lib/lp/model
Gavin Clarke
Trusted Contributor

Re: Printing A3 to Jetdirect card

The fact that you're printing to a jetdirect card shouldn't make any difference. Aren't most hp network printers connected to jet direct cards?

Hopefully slightly more helpfully the first time paper source is mentioned in /etc/lp/interface/model.orig/

is this bit (see below)

Which suggests to me that you can print using lp -otray3
or lp -olb
or lp -olbin
or lp -olower

Please correct me if I'm wrong.

Thanks.
___________________________________________
£ paper source
£ [ Modified by Amit R. Raval to fix the problem of not working manual feed
£ on June 29th 1998.
£ tray1 | manual | man ) £ manual sheet feed
£ mediasrc="4";;

tray1 ) £ feed from tray 1
mediasrc="4";;
manual | man ) £ manual sheet feed
mediasrc="2";;

£ ]
tray2 | upper | ub | ubin) £ feed from upper tray
mediasrc="1";;
tray3 | lower | lb | lbin ) £ feed from lower tray
mediasrc="5";;
tray4 ) £ HCI
£ [ Modified by Amit Raval to support for LaserJet 8000 printer on 17th Apr. 199
8
£ mediasrc="8";;
__________________________________________
Gavin Clarke
Trusted Contributor

Re: Printing A3 to Jetdirect card

Well I'm wrong. I conducted a fairly limited test with a lj4200 (same model script net_ljx000) and 10.20, it just ignored all the options. I tried:

lp -otray3
lp -oA3 -- Which printed two sheets from tray2
lp -olbin
lp -otray4

The printer happily printed the option on the banner and then printed from tray2!

Grrr...

There are even options in model.orig for things like recycled paper, which I suspect our 4200 would ignore too.

Still Good Luck, if I find the magic answer I'll let you know.
Bill Hassell
Honored Contributor
Solution

Re: Printing A3 to Jetdirect card

It sounds like you are not using the correct printer interface script. The correct script is net_ljx000 and there is an extensive man page for the script (man net_ljx000). If you used hppi to add the printer (and it was online and working), the net_ljx000 script would have been selected automatically.

But first make sure you did NOT add the printer as a "remote" printer, that is, a printer served by another computer. The JetDirect interface cards can act as JetDirect print servers or they can also act as 'dumb' remote print servers. And in HP-UX, the SysV lp spooler system cannot process any -o options for remote printers unless the remote server is another HP-UX system. To see if this is the script you're using, look at the first 3-4 lines of the interface script in /etc/lp/interface. If it refers to BSD options, the printer is confirgured as a remote printer. Correctly configured JetDirect printers will all have the same script in the interface directory and will mention hpnpl and hpnpf in the comments.

If the printer is remote, just remove the printer and add it back as a true JetDirect pritner with the hppi menu program, or use addqueue to do everything on one line:

/opt/hpnpl/bin/addqueue -q mylj5000 -h 12.34.56.78 -i 258 -b off

If you check the model.orig directory, you will now see the printer's script there. If the printer was indeed added as a JetDirect printer, you can replace the script in /etc/lp/interface/model.orig with the correct script like this:

cp /opt/hpnpl/sh/net_ljx000 /etc/lp/interface/model.orig/mylj5000

This cp can be done with the spooler running. Since you might want the banner turned off, you can either edit the mylj5000 script and follow the comments about setting banner="" or use hppi to modify the script for you.

Once this is done, you'l have dozens of options available including input tray, output tray, banner tray, duplex, font adjustments, etc.


Bill Hassell, sysadmin
MarkSyder
Honored Contributor

Re: Printing A3 to Jetdirect card

Thanks Bill.

I had set it up as a network printer, but I'd used SAM - doing it on the command line made all the difference.

Mark
The triumph of evil requires only that good men do nothing