Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-12-04
9
Medium Priority
?
1,126 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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 375 total points
ID: 9912628
;-)

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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.:
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…
Suggested Courses

730 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