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.
sonmothAsked:
Who is Participating?
 
gheistConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.