Solved

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

Posted on 2003-12-04
9
1,123 Views
Last Modified: 2010-04-21
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
Comment
Question by:wsizemore
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 24

Expert Comment

by:shivsa
ID: 9876272
lpstat is command for getiing the statistics on queue.
lpr -q
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9876279
try "smitty spooler"
You can do everything about the print queue.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9876415
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 62

Expert Comment

by:gheist
ID: 9876756
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
 
LVL 11

Expert Comment

by:griessh
ID: 9905235
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
 
LVL 62

Expert Comment

by:gheist
ID: 9907965
* * * * * '"/usr/bin/lsallq | /usr/bin/xargs -n 1 /usr/bin/enable'"
0
 
LVL 1

Expert Comment

by:mbekker
ID: 9910584
Another way to enable only the DOWN queue's:

enq -WAs | grep DOWN | cut -d' ' -f1 | xargs enable
0
 
LVL 11

Expert Comment

by:griessh
ID: 9912048
... which will obviously only work in an English environment :-)
0
 
LVL 1

Accepted Solution

by:
mbekker earned 125 total points
ID: 9912628
;-)

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where to get php 5.6 for AIX 7.1? 5 148
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 121
How to check the PVU´s on AIX TSM servers? 3 134
comm diff cmp unix commands 2 18
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

734 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