How can I monitor AIX printer queues?

Hello,

I have large number of printers and at least 3 per day are going down is there a way remotly to monitor those printer queues so I know when they fail?

Thank you,
MrMagicNCAsked:
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.

bummerlordCommented:
Define remotely?
Are these remote printers with queues on your AIX system that you want to monitor from yet somewhere else?
Please explain in more detail.
If its good enough to have the monitoring run on the AIX system, you could create a script that will parse /etc/qconfig and run "lpq -P<queuename>" on each, look for 'errors' or "NOT READY" statements in the output, and send you an email (or even attempt disable/enable the queue and send you email if the problem  still persists).
0
MrMagicNCAuthor Commented:
I wanted to use SNMP Monitoring application in order to display status of the queues in it but your script solution might do the trick for now.

thank you.
0
dfkeCommented:
A quick way is to try a simple script like this and run it from cron every 5 minutes or so.

enq -As | grep "DOWN" | cut -f 1 -d " " | while read ln
do
enable $ln > /dev/null 2> /dev/null
done

This will check only for queues with status DOWN and will try to bring those back up.

If a queue with status DOWN doesn't come up after 5 minutes then there is another problem. Maybe the printserver lost it's connection to the network or such. Also check if  /var is filling up too rapidly so the printspooler can't proces some large jobs.

You can also try to insert or increase the timeout on qeueus that go down often.  Add the -T option and the number of minutes the server will retry before the queue goes down.

 backend = /usr/lib/lpd/rembak -T <minutes>
0

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
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
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.