Operating System - HP-UX
1833000 Members
2335 Online
110048 Solutions
New Discussion

Re: rename multiple jetdirect queues

 
SOLVED
Go to solution
Liam Curtis
Frequent Advisor

rename multiple jetdirect queues

Hi All. I have the daunting task of having to rename all of our jetdirect print queues (~50) and a few remote queues to under 9 characters. We are running HP-UX 11i.

From what I've seen the only way to do this is to delete and re-add the printer, but was hoping someone has found a way by now to do this or has perhaps scripted something similar.

Any hidden switches for the modifyqueue command?
3 REPLIES 3
Geoff Wild
Honored Contributor
Solution

Re: rename multiple jetdirect queues

Best to delete/re-add

Create 2 files with a list of current queues, and new queues...


for i in `cat oldfile`
do
lpadmin -X$i
done

for i in `cat newfile`
do
addqueue -i 9998 -h $i.yourdomain.com -q $i
done


Or something like that - bare in mind that will create Jet Direct queues...network printers...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Liam Curtis
Frequent Advisor

Re: rename multiple jetdirect queues

Thanks Geoff.

Thats what I thought, but at least scripting might help. Unfortunately, we prefer to use ip's instead of hostnames, so I guess I really have to do things the hard way.
Richard Darling
Trusted Contributor

Re: rename multiple jetdirect queues

One way to avoid setting up new printers is to setup a printer class with a name that is acceptable, and assign the printer with the longer name to that class. The users can then print to the class.