[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

I need a script that monitors for downed print queues and restarts them.

I am running AIX 5.2.0.7 I need a script that monitors for downed print queues and restarts them.
0
sonmoth
Asked:
sonmoth
  • 2
1 Solution
 
gheistCommented:
IBMS plumbs big customers' systems this way:
http://www-01.ibm.com/support/docview.wss?uid=isg3T1000284
0
 
woolmilkporcCommented:
Something like that?

#/bin/ksh
# Script to monitor and restart  print queues

enq -As | grep "DOWN" | awk "{print  \$1}"  | while read que
do
enable $que > /dev/null 2> /dev/null
done
0
 
dfkeCommented:
Yes or:

enq -As | grep "DOWN" | cut -f 1 -d " " | while read que                                  
0
 
gheistCommented:
Which was your error? If scripts were handy you should grant some pts to authors
0

Featured Post

Independent Software Vendors: 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!

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