Operating System - HP-UX
1834461 Members
3120 Online
110067 Solutions
New Discussion

Re: Create phinters in mass.

 
Yasir_3
Occasional Contributor

Create phinters in mass.

Hi,

I have a list of printers with all the data (host name, IPs, etc.) which I have to create. Using SAM -> add remote printer, I can do it.

I there any way to create them in mass?? I mean if I can opne some files and fill in the information in those files....

thanks in advance for the input.

regards,

Yasir.
3 REPLIES 3
Peter Godron
Honored Contributor

Re: Create phinters in mass.

Yasir,
do a "man lpadmin" for a introduction to online.
Printer definitions are at /usr/lib/lp/model
Regards
Pete Randall
Outstanding Contributor

Re: Create phinters in mass.

Yasir,

I use the attached script to mass add my dozen or so printers. For the most part, they are network attached nowdays, and use "removequeue" and "addqueue", but the logic is there to do it the old fashioned "lpadmin" way, too. Hope this helps.


Pete

Pete
Yasir_3
Occasional Contributor

Re: Create phinters in mass.

Dear Pete,

I believe you did not attach the script you are talking about.

Yasir.