Re: [Veritas-bu] FW: BLAT statement would not send e-mails for status 1
2011-12-23 08:29:18
Hi ANurag,
I am not aware of BLAT,
but you can do the same using the backup_exit_notify script.
Script exists in the /usr/openv/netbackup/bin
path. put the "if" condition . below is the example condition
from my environment.
if [ $5 != 0 ]
then
if [ $5 == 1 ]
then
echo "BACKUP
COMPLETED WITH STATUS PARTIALLY SUCCESSFUL ON `hostname` FOR CLIENT $1"
| mail -r "PARTIAL_BACKUP AT CNDABCKPOTZP01.airtel DOT in" -s "BACKUP
COMPLETED WITH STATUS PARTIALLY SUCCESSFUL ON `hostname` FOR CLIENT $1"
<username AT company DOT com>
else
cat $OUTF | mail -r "FAILED_BACKUP AT CNDABCKPOTZP01.airtel DOT in"
-s "BACKUP FAILED ON `hostname` FOR CLIENT $1 WITH ERROR CODE $5"
<username AT company DOT com>
fi
fi
Rgds
Abhishek Dhingra
OLM ID : A1384552
Email : abhishek.dhingra AT in.ibm DOT com
Anurag Sharma <sharma.anurag AT hotmail DOT com>
Sent by: veritas-bu-bounces AT mailman.eng.auburn DOT edu
12/23/2011 01:56 PM
|
To
| veritas-bu <veritas-bu AT mailman.eng.auburn DOT edu>
|
cc
|
|
Subject
| [Veritas-bu] FW: BLAT statement would
not send e-mails for status 1 |
|
Guys,
Please help.!!!
Anurag
From: sharma.anurag AT hotmail DOT com
To: veritas-bu AT mailman.eng.auburn DOT edu; sharma.anurag AT hotmail DOT com
Subject: BLAT statement would not send e-mails for status 1
Date: Fri, 23 Dec 2011 06:03:30 +0530
Hi All,
I have successfully configured BLAT with nbmail. This is has led to lot
of email for the jobs completing with status code1.
Is there anyway to configure BLAT in such a manner so that it would not
send email for status 1 partially successful backups.
Anurag
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|