Veritas-bu

[Veritas-bu] Notify script for Pending Request

2001-03-13 18:36:09
Subject: [Veritas-bu] Notify script for Pending Request
From: Everett, Craig Craig_Everett AT intuit DOT com
Date: Tue, 13 Mar 2001 15:36:09 -0800
All the usual disclaimers apply blah blah blah!

Small script to send email or page on pending request

#!/bin/sh
LIST="Backup_admin AT intuit DOT com"

#Use the vm.conf which you modify to have KNOWN Entries for hosts with
libraries
for i in `grep KNOWN /usr/openv/volmgr/vm.conf|awk '{print $3}'|sort -u`
do
        /usr/openv/volmgr/bin/vmoprcmd -M $i -d pr| grep -v PENDING | grep
-v NONE > /var/tmp/drivesstatus.tmp
        PENDING=`grep root  /var/tmp/drivesstatus.tmp | wc -l`
                        if [ "$PENDING" -ne 0 ]
                          then
                        
                        #SEND EMAIL OR YOU CAN HAVE IT PAGE IF YOU WANT
                        echo "There are pending alerts on $i" | $MAIL -s \
                         "There are pending requests on $i" $LIST
                        fi
rm /var/tmp/drivesstatus.tmp
done


Hope this helps,

Craig Everett
Technology Operations-Storage Team
Intuit Inc
craig_everett AT intuit DOT com
858-784-1495 Office
619-921-1344 Wireless



-----Original Message-----
From: Craig Barricman [mailto:barricman AT jpl.nasa DOT gov]
Sent: Tuesday, March 13, 2001 3:07 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Notify script for Pending Request


Does anyone know how to capture the message in the pending request field 
and send that off as a page?  I looked in /usr/openv/netbackup/bin 
directory and gone over all the notify scripts but none of them was 
geared towards pending request.  It would make life easy by getting a 
page instead of having the Device Management window open and sitting 
there monitoring it.

Thanks
Craig

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu



<Prev in Thread] Current Thread [Next in Thread>