Operating System - HP-UX
1832977 Members
2730 Online
110048 Solutions
New Discussion

How to configure a LJ4350

 
Dave Bottom_1
Occasional Contributor

How to configure a LJ4350

Hi all.
I need to setup a LaserJet4350 on HPUX 11i.
We're running the old JetDirect software. The printer runs using the old net_ljx000 as the model selection but I need to understand how to tell it to use drawer 4 as the default paper source.

thanks

Dave
Dances with trout
4 REPLIES 4
HGN
Honored Contributor

Re: How to configure a LJ4350

Hi

As far I know the printer configuration is done on the printer to tell what tray it uses by default, the hpux scheduler just sends the job to the queue and has no control in configuring the printer function.

Rgds

HGn
Bill Hassell
Honored Contributor

Re: How to configure a LJ4350

Printer controls such as paper tray and duplex controls are in the printer script, so the man page will tell you how to select the trays. Use the command:

man net_ljx000

NOTE: The original jetadmin software (in the directory /opt/hpnp) is not only obsolete since 1999, but is known to have Y2K errors. You should download the current version of JetDirect software immediately. Note that installing the new software will not affect the currently defined printers, so to get the latest printer scripts and configurations, delete the old printer(s) and add them back.

Both the obsolete jetadmin and the current hppi products have the addqueue and removequeue commands so even if you havge dozens of JetDirect printers, you can remove and re-add them with just two commands:

cd /opt/hpnpl/bin
./removequeue -q myprinter
./addqueue -q myprinter -h ip_or_hostname

Get the latest software from:

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=18922&prodTypeId=18972&prodSeriesId=27349&swLang=8&taskId=135&swEnvOID=7


Bill Hassell, sysadmin
Dave Bottom_1
Occasional Contributor

Re: How to configure a LJ4350

Bill thanks for the reply. I have that version of JetDirect installed.

I need to make this use tray 4 without user intervention since the printer is printing from inside Oracle Reports and we do not have access to the command line from the reports server or our application that invokes it.

Since we use the same net_ljx000 for other printers without the large capacity tray can I copy /opt/hpnpl/sh/net_ljx000 (which is where I found it) to some other name and then edit it to force tray 4 use always?

thanks

Dave
Dances with trout
Bill Hassell
Honored Contributor

Re: How to configure a LJ4350

Ah, what you need are custom printer queues with preset options. With JetDirect cards, that is very easy. Use addqueue to create a new queue for the LJ 4350, something like this:

cd /opt/hpnpl/bin
./addqueue -h 12.34.56.78 -q lj4350a

Now cd to the printer script directory /etc/lp/interface and edit the file with the name lj4350a (or whatever queue name you choose for this tray4 printer). All the defaults are in one location in the net_ljx000 script so look for the string: mediasrc="def"

What these various items do is to establish default settings. So by changing mediasrc="def" to mediasrc="8" Note that input tray 1 is medisrc="4" (they don't follow the tray numbers labeled on the printer). If you search for tray4, you'll see how this option (-otray4) is handled in the script.

Then test the printer with a simple file:

lp -dlj4350a /etc/issue

It should pick paper from the 4th paper tray. You can make several print queues for the came printer with different options preset in the script. Remember to document these changes in your sysadmin logs.


Bill Hassell, sysadmin