Operating System - HP-UX
1833582 Members
3662 Online
110061 Solutions
New Discussion

Creating remote printers with lpadmin

 
SOLVED
Go to solution
Jonathan Caplette_1
Super Advisor

Creating remote printers with lpadmin

Hi guys,

I would like to create remote printers like we do in SAM, with lpadmin. I need to create remote Xerox printer queue on many system, and I would appreciate to do it in a script so it will save me time...

I would like to use the lpadmin command line to do it... but I need to specify some options like in SAM:

- Remote System Name: ex.: rprinter.test.com
- Remote Printer Name: ex.: lp

How can I do it?? And will I need to specify the Remote Cancel Model and Remote Status Model???

Thanks
Jonathan
3 REPLIES 3
Pete Randall
Outstanding Contributor
Solution

Re: Creating remote printers with lpadmin

Jonathan,

I'll attach a script that I use but, basically all you need is this:

lpadmin -p$PRNTR -v/dev/null -mrmodel -g0 -ocmrcmodel -osmrsmodel -orm$LOC.holst
ein.com -orp$PRNTR"

where $PRNTR is the name of the print queue and $LOC is the name of the server to which the printer is attached.


Pete

Pete
Jeff Schussele
Honored Contributor

Re: Creating remote printers with lpadmin

Hi Jonathan,

lpadmin -pptr_name -v/dev/null -mrmodel -ocmrcmodel -osmrsmodel -ob3 -ormhost_name -orpqueue_name -v/dev/null

This creates a local printer named ptr_name on the host host_name using it's queue name queue_name.
Not very elegant is it?

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jonathan Caplette_1
Super Advisor

Re: Creating remote printers with lpadmin

Hey guys...

It worked perfectly...

Thank you both!!
ciao
Jonathan