Veritas-bu

Re: [Veritas-bu] FW: BLAT statement would not send e-mails for status 1

2011-12-26 01:48:10
Subject: Re: [Veritas-bu] FW: BLAT statement would not send e-mails for status 1
From: Anurag Sharma <sharma.anurag AT hotmail DOT com>
To: <smpt1 AT peppas DOT gr>, <abhishek.dhingra AT in.ibm DOT com>, <nbuadmin AT durham DOT ca>
Date: Mon, 26 Dec 2011 12:18:01 +0530
Thank You Smpt/Abhishek/Linda,

Thanks for pouring in great ideas.!!

I however got my way around nbmail finally.

We just need to add following above the If statement in the nbmail script.

----------------------------------------------------------------------
FINDSTR /C:"was partially successful" %3
IF {%errorlevel%}=={0} goto :EOF
-----------------------------------------------------------------------

Regards
Anurag

From: smpt1 AT peppas DOT gr
To: abhishek.dhingra AT in.ibm DOT com; sharma.anurag AT hotmail DOT com
CC: veritas-bu AT mailman.eng.auburn DOT edu; veritas-bu-bounces AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] FW: BLAT statement would not send e-mails for status 1
Date: Fri, 23 Dec 2011 15:58:41 +0200

You can do the same with nbmail. Just find the correct parameter. Maybe it is not %5 at nbmail.bat

 

You can always install and use opscenter

 

 

 

From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Abhishek Dhingra1
Sent: Friday, December 23, 2011 10:44 AM
To: Anurag Sharma
Cc: veritas-bu; veritas-bu-bounces AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] FW: BLAT statement would not send e-mails for status 1

 

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