1834154 Members
2225 Online
110064 Solutions
New Discussion

Jetadmin scripts??

 
SOLVED
Go to solution
Tim Medford
Valued Contributor

Jetadmin scripts??

Is there any way to use scripts to add several printers in bulk? It gets tedious very quickly using the jetadmin character based interface.

I've looked through the man pages on jetadmin and I can't find anything.

Thanks!
3 REPLIES 3
Rick Garland
Honored Contributor

Re: Jetadmin scripts??

Use of the lpadmin command can accomplish the goal. Use different syntax for remote printers vs network printers.
R Madhavan
Frequent Advisor
Solution

Re: Jetadmin scripts??

Try using 'addqueue' command in your script, which is available in /opt/hpnp/bin directiory. This comes with jetadmin S/W. For more info. check man page for addqueue.

/*
Justin Willoughby
Regular Advisor

Re: Jetadmin scripts??

I have a question about the addqueue utility.

When used, it automatically sets jobm="yes" in the /etc/lp/interface/printername file. How can I get it to set this to jobm="no" ?

Can this be done by another utility via the command line? Of course it can be done via jetadmin but I am going to incorporate this into a script so I need to be able to do it via the command line.

Also using addqueue does not set PRINTERCFG= does this need to be set?

Any suggestions are greatly appreciated!

- Justin