Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1128
  • Last Modified:

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.

Thanks,

Will Sizemore
Technical Systems Manager
Ames True Temper
will.sizemore@amestruetemper.com
0
wsizemore
Asked:
wsizemore
  • 3
  • 2
  • 2
  • +1
1 Solution
 
shivsaCommented:
lpstat is command for getiing the statistics on queue.
lpr -q
0
 
shivsaCommented:
try "smitty spooler"
You can do everything about the print queue.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
gheistCommented:
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
0
 
griesshCommented:
To sum it up:

This command will show you all the queues:

/usr/bin/lsallq

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>

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

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

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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now