[Webinar] Streamline your web hosting managementRegister Today


How can I monitor AIX printer queues?

Posted on 2008-01-30
Medium Priority
Last Modified: 2013-11-17

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,
Question by:MrMagicNC

Expert Comment

ID: 20783405
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).

Author Comment

ID: 20785153
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.
LVL 11

Accepted Solution

dfke earned 500 total points
ID: 20785646
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
enable $ln > /dev/null 2> /dev/null

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>

Expert Comment

ID: 21185838
Forced accept.

EE Admin

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

640 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question