Veritas-bu

[Veritas-bu] Scripts to notify of backup failures

2008-11-26 11:34:00
Subject: [Veritas-bu] Scripts to notify of backup failures
From: "Huber, Ryan" <Ryan.Huber AT dvn DOT com>
To: <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Wed, 26 Nov 2008 09:11:12 -0700
Hi Steve,
 
Is your master server Windows or UNIX? On a Solaris server we use the backup_exit_notify script located in /usr/openv/netbackup/bin.
 
We trimmed back the output to only include status errors greater than 6 and also so it is just a brief subject only message as follows:
 
echo ${dateStr} "-----------------------------" >> $OUTF
echo ${dateStr} "       CLIENT:  $1" >> $OUTF
echo ${dateStr} "       POLICY:  $2" >> $OUTF
echo ${dateStr} "     SCHEDULE:  $3" >> $OUTF
echo ${dateStr} "SCHEDULE TYPE:  $4" >> $OUTF
echo ${dateStr} "       STATUS:  $5" >> $OUTF
echo ${dateStr} "       STREAM:  $6" >> $OUTF
echo ${dateStr} "-----------------------------" >> $OUTF
# might want to mail this info to someone
if [ $5 -gt 6 ]
then
#cat $OUTF |
mailx -s "Backup of $1 failed with status $5 for policy $2, type $4" someonewhocares AT here DOT com
 
This assumes that sendmail or some form of email has been setup correctly. Hope that helps.
 
Cheers!
 
Ryan


Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, retransmission, conversion to hard copy, copying, circulation or other use of all or any portion of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, and delete this message and any attachments from your system.

_______________________________________________
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>
  • [Veritas-bu] Scripts to notify of backup failures, Huber, Ryan <=