Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX print queue management

Status
Not open for further replies.

jpawlak

IS-IT--Management
May 28, 2003
1
US
I have a pratice management system that runs on a AIX/RS6000 platform. I have OKI data printers printing IP. I have a few queues that go "down" regularly. i would like to write a string that will go out check the queues, say every 30 minutes, and if it is down, enable the queue. Any help on this would be greatly appreciated, this will eliminate half of my support calls in half considering there is only 2 of us for 350+ users.

THANKS!!!
 
Not my script but another's on this forum. (Sorry I forgot who to credit)

enq -As | grep "DOWN" | cut -f 1 -d " " | while read ln
do
enable $ln
done

then add script to crontab as
0,30 * * * * /dirname/scriptname

the script will run every 30 minutes everyday
Make sure the owner of crontab has printq group rights to manage print queues.

[morning] needcoffee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top