How to monitor/restart DOWN print queues on AIX 4.3.3?

Before I start writing a script, does anyone know an easy way to monitor print queues in AIX 4.3.3 and restart DOWN print queues?

We have several remotes queues that seem to end up "DOWN" often, usually if there is network trouble.


Will Sizemore
Technical Systems Manager
Ames True Temper
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lpstat is command for getiing the statistics on queue.
lpr -q
try "smitty spooler"
You can do everything about the print queue.
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

combina all suggestions:
run smitty spooler, find where it starts queues,
use F8 or Esc,8 to examine actual command to start queue
and insert this command for each and every remote printer in crontab for root every minute/five/hour at weekdays/workdays.
AIX has very bad habit of bringing out-of-paper printers DOWN for good
To sum it up:

This command will show you all the queues:


su (you need root privileges)

add a line for each queue to root's crontab to jumpstart your queues every minute:

* * * * * /usr/bin/enable <queue name>

* * * * * '"/usr/bin/lsallq | /usr/bin/xargs -n 1 /usr/bin/enable'"
Another way to enable only the DOWN queue's:

enq -WAs | grep DOWN | cut -d' ' -f1 | xargs enable
... which will obviously only work in an English environment :-)

Okay: enq -WAs | grep $(dspmsg -s 2 qstat 33) | cut -d' ' -f1 | xargs enable

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.