Operating System - HP-UX
1827889 Members
1788 Online
109969 Solutions
New Discussion

HPUX: Adding Network Printers via Command Line

 
Gavin James
New Member

HPUX: Adding Network Printers via Command Line

Hi,

I am having trouble adding networked printers to the HP-UX 11.11 Operating System through the command line.

I can successfully add individual Networked printers using SAM (HPPI). However, I need to write a script to add multiple Network printers at the same time.

I have also found commands (lpadmin) to add remote printers but these commands do not appear to work with Network Printers.

Can anybody Help?

Regards,
Gavin
2 REPLIES 2
Tim Nelson
Honored Contributor

Re: HPUX: Adding Network Printers via Command Line

Check out the man page for addqueue

Pete Randall
Outstanding Contributor

Re: HPUX: Adding Network Printers via Command Line

IP=ip_address_of_printer
PRNTR=name_of_printer

/opt/hpnpl/bin/addqueue -h $IP -q $PRNTR


Pete

Pete