03-08-2010 08:59 PM
Solved! Go to Solution.
03-09-2010 12:02 AM
03-09-2010 12:02 AM
03-09-2010 03:02 AM
#------------------------------------------------------------------ #BEGIN SCRIPT DRIVEWATCH #!/usr/bin/ksh #---------------------------------------------------------------------- # Check drives, bring drive up if down, email Staff # If drives are up, do not create a report, runs from cron #---------------------------------------------------------------------- # Add interested parties below: someone_who_cares=operations@thiscorp.org /usr/openv/volmgr/bin/vmoprcmd -d ds | grep "DOWN-TLD" 2>&1 if [ $? -ne 1 ];then echo " " echo " " rm /tmp/drivelog /usr/bin/date >> /tmp/drivelog echo "Please check DLT drives on MASTER: `/usr/openv/volmgr/bin/vmoprcmd -d ds` I will now attempt to place drive(s) in UP status" >> /tmp/drivelog echo "" >> /tmp/drivelog for i in `/usr/openv/volmgr/bin/vmoprcmd -d ds | tail +5 | grep "DOWN"|awk '{print $1}'` do /usr/openv/volmgr/bin/vmoprcmd -up $i done /usr/openv/volmgr/bin/vmoprcmd -d ds >> /tmp/drivelog cat /tmp/drivelog | /usr/bin/mail -s "Drive(s) on Veritas are DOWN" \ $someone_who_cares fi
03-09-2010 12:01 PM
03-09-2010 12:59 PM
03-09-2010 11:02 PM
03-09-2010 11:31 PM