Operating System - HP-UX
1831060 Members
2920 Online
110019 Solutions
New Discussion

Use alternate printer script hp-ux

 
SOLVED
Go to solution
Smucker
Regular Advisor

Use alternate printer script hp-ux

We are having a possible problem with a model script. I would like to add a printer but override the model_script being used in the definition....any ideas

HPPI has the option but it does not work!

Willing to use addqueue or lpadmin if someone tells the syntax.

I want define a hp4350 (net_lj4350) but use a hp4050 driver (net_ljx000)
4 REPLIES 4
Tim Nelson
Honored Contributor

Re: Use alternate printer script hp-ux

In /etc/lp/interface/model.orig simply cp the printer_named file to printer_name.old then copy what ever driver you would like to printer_name. Make sure the permissions and ownerships are correct.

You can continue to do this at will until you find one that works right. The model scripts are read every time there is a print job sent so no need to reset/restart the scheduler.

Court Campbell
Honored Contributor
Solution

Re: Use alternate printer script hp-ux

When you use hppi, it should ask whether or not you want to use the suggested model script. I know you say that it doesn't work, but that seems odd. Also, if you use lpadmin you will be setting up the printer as a remote printer. lpadmin and addqueue are not the same. You can use

# addqueue -l

to get a list of modelscripts and then use addqueue with the -i switch and supply the id from the list.

ex.

# addqueue -i 4 -h host -q queue_name -b off

"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Smucker
Regular Advisor

Re: Use alternate printer script hp-ux

Yes, I knew I could copy the printer script from the old driver...but I try to stay away from these type of solutions. I may not be the only one defining these printers and do not want someone else doing things like this.


I like the addqueue option. great news...

Thanks
Bill Hassell
Honored Contributor

Re: Use alternate printer script hp-ux

> Yes, I knew I could copy the printer script from the old driver...but I try to stay away from these type of solutions. I may not be the only one defining these printers and do not want someone else doing things like this.

Well, only the root or lp user can do this so you will have only knowledgeable people doing this. But note that addqueue is simply doing what you would do by hand -- copying a different script for this printer. If someone deletes the printer and adds it back without using addqueue and the specific printerID, then default script goes back in place.

Note that addqueue and hppi (unless told otherwise) will a;ways select the printer script based on the model of the printer. Now the net_ljx000 is the most generic high-end LaserJet printer script you can use so making all your LaserJet printers use the same script should work fine. Unknown or missing feature options (like -oduplex or -obtray3 are just ignored by printers without those features.


Bill Hassell, sysadmin