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

2011-12-23 Thread smpt
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-boun...@mailman.eng.auburn.edu
[mailto:veritas-bu-boun...@mailman.eng.auburn.edu] On Behalf Of Abhishek
Dhingra1
Sent: Friday, December 23, 2011 10:44 AM
To: Anurag Sharma
Cc: veritas-bu; veritas-bu-boun...@mailman.eng.auburn.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_bac...@cndabckpotzp01.airtel.in" -s
"BACKUP COMPLETED WITH STATUS PARTIALLY SUCCESSFUL ON `hostname` FOR CLIENT
$1"  
  else 
 cat $OUTF | mail -r "failed_bac...@cndabckpotzp01.airtel.in" -s "BACKUP
FAILED ON `hostname` FOR CLIENT $1 WITH ERROR CODE $5"
 
 fi 

fi 

Rgds
Abhishek Dhingra
OLM ID : A1384552
Email : abhishek.dhin...@in.ibm.com 




Anurag Sharma  
Sent by: veritas-bu-boun...@mailman.eng.auburn.edu 

12/23/2011 01:56 PM 


To

veritas-bu  


cc



Subject

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

 






Guys,

Please help.!!!

Anurag 

  _  

From: sharma.anu...@hotmail.com
To: veritas-bu@mailman.eng.auburn.edu; sharma.anu...@hotmail.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@mailman.eng.auburn.edu
 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2011-12-23 Thread Abhishek Dhingra1
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_bac...@cndabckpotzp01.airtel.in" -s 
"BACKUP COMPLETED WITH STATUS PARTIALLY SUCCESSFUL ON `hostname` FOR 
CLIENT $1" 
  else
 cat $OUTF | mail -r "failed_bac...@cndabckpotzp01.airtel.in" -s "BACKUP 
FAILED ON `hostname` FOR CLIENT $1 WITH ERROR CODE $5" 

 fi

fi 

Rgds
Abhishek Dhingra
OLM ID : A1384552
Email : abhishek.dhin...@in.ibm.com



Anurag Sharma  
Sent by: veritas-bu-boun...@mailman.eng.auburn.edu
12/23/2011 01:56 PM

To
veritas-bu 
cc

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






Guys,

Please help.!!!

Anurag 

From: sharma.anu...@hotmail.com
To: veritas-bu@mailman.eng.auburn.edu; sharma.anu...@hotmail.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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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

2011-12-23 Thread Anurag Sharma

Guys,

Please help.!!!

Anurag 

From: sharma.anu...@hotmail.com
To: veritas-bu@mailman.eng.auburn.edu; sharma.anu...@hotmail.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@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu