Operating System - HP-UX
1822004 Members
3904 Online
109639 Solutions
New Discussion юеВ

Setup Remote Printers on command line

 
SOLVED
Go to solution
Mike Ingram_1
Frequent Advisor

Setup Remote Printers on command line

Hi All,

I have a Tru64 system that is being decommissioned, and the replacement is an HP 8420.
I have approx. 600 printers configured on Tru64, which need to be set up on HP-UX.
I have set up a few using SAM, but wonder if there is an easier way, by using a script, to add all these printers?

Any help or advice welcome!

Thanks,

Mike.
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: Setup Remote Printers on command line

I assume that you are using JetDirect (Network printers in HP-UX speak) devices. The simplest command is the addqueue command. Man addqueue for details.
If it ain't broke, I can fix that.
Jeff_Traigle
Honored Contributor
Solution

Re: Setup Remote Printers on command line

lpadmin is the command you want. There's even an example in the man page for setting up a remote printer.
--
Jeff Traigle
A. Clay Stephenson
Acclaimed Contributor

Re: Setup Remote Printers on command line

By the way, if given a choice under HP-UX always choose Network over Remote printers. You have far more control over Network printers.
If it ain't broke, I can fix that.
Mike Ingram_1
Frequent Advisor

Re: Setup Remote Printers on command line

Thanks guys - I'll start reading the man pages.
All the printers run off a Windows print Server, so I figured that I should use Remote printing, rather than Network printing?

I'll update as soon as I have had some success....

Cheers.
Mike Ingram_1
Frequent Advisor

Re: Setup Remote Printers on command line

Update - it worked, and here is what I did:

1. lpshut
2. /usr/sbin/lpadmin -pUS1P1E1 -v/dev/null -mrmodel -ormus1psrv -orpUS1P1E1
4. accept US1P1E1
3. enable US1P1E1
4. lpstat US1P1E1
5. lpsched

Many thanks for the pointers.