1838246 Members
4138 Online
110125 Solutions
New Discussion

Re: Printer Model Script

 
Ron Brown_2
Frequent Advisor

Printer Model Script

How can I change the printer model script in HP-UX 11.00?
should work...
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: Printer Model Script

Your question is not very clear (modify an existing script or replace it?) nor have you indicated whether this is a direct attached, network, or remote printer. The answer varies a little depending on which case we are dealing with.

In general, a model script in /usr/lib/lp/model is copied to /var/spool/lp/interface/printername. Once the copy is in the interface directory it's a unique version so you are free to change it. The same is true of network printer model scripts except they start out /opt/hpnpl/sh and there are two conponents. One in /var/spool/lp/interface and the other part in the model.orig directory just below; both share the common printer (more properly, the queue name).


If it ain't broke, I can fix that.
Ron Brown_2
Frequent Advisor

Re: Printer Model Script

You're right. Sorry about that. I have a printer to which print jobs go via the Internet. I am unable to ping this printer because the service provider has disabled ICMP on their network. Managerial cost-cutting...

While I have used addqueue many times in the past to configure printers at remote locations, this most recent print setup is acting strangely. It appears to be in "quiet" mode and print jobs take twice as long as normal.

I want to make sure that the printer is configured to use the dumb print model script.

By the way, this printer does not appear in /var/spool/lp/interface/ for some reason.

I used the following command to add the printer:

addqueue -i 9998 -h ip.address -p 3 -q printername
should work...
Victor BERRIDGE
Honored Contributor

Re: Printer Model Script

Hi Ron,
You can check the printer status by typing:
/opt/hpnpl/hpnpadmin -v


All the best
Victor
Bill Hassell
Honored Contributor

Re: Printer Model Script

This is likely a firewall issue. HP's JetDirect protocol uses several ports (in addition to ICMP ping) so the hpnpf program (that actually sends the file) is probably having difficulty. The printers script has nothibng to do with network printing. Start by bypassing the spooler completely using hpnpf as in:

opt/hpnpl//bin/hpnpf -x 12.34.56.78 -N -l /var/tmp/hpnpf.log /etc/profile

Take a look at the (lengthy) logfile to see what part of the protocol seems to be failing. /opt/hpnpl/bin/hpnpadmin is also a good test to see what is hanging or missing with remote queries. You may need to use soemthing like Ethereal and a PC (or setup nettl on HP-UX) to decode a LAN trace file.


Bill Hassell, sysadmin