Veritas-bu

[Veritas-bu] Email Failed Backups Only

2004-01-28 20:45:25
Subject: [Veritas-bu] Email Failed Backups Only
From: kris.williams AT hp DOT com (WILLIAMS, KRISTOPHER L)
Date: Wed, 28 Jan 2004 19:45:25 -0600
If you wanted to get really fancy, you could make a bpend_notify that
checks the status code. If it is anything other than 0 then save the
info to a temp file. Then have backup_exit_notify mail out the contents
of your temp file then delete it.

Bpend_notify runs at the end of every backups. Backup_exit_notify runs
after each session of scheduled backups.


Hope this helps,

Thanks

Kris Williams
HP Managed Services
Global P&G GTS
Data Management Team            Kris.Williams AT hp DOT com
        
 


-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Corbett,
Nancy
Sent: Wednesday, January 28, 2004 4:39 PM
To: Paul Porcelli; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Email Failed Backups Only


If you want it to email you every time a backup fails, as opposed to
sending you a compiled report of daily failures, here's what I would
do...

Modify the /usr/openv/netbackup/bin/backup_exit_notify script by right
under this line:

# might want to mail this info to someone 

And add this:

if [ $5 != 0 ]
then
   cat $OUTF | mailx -s "Backup of $1 exited with status $5"
you AT email DOT com fi
------

This script is managed by bpsched and runs automatically every time a
backup completes. If you add an if statement like the one above, it will
email you every time it runs and finds a backup status of anything other
than 0.

Nancy



-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Paul
Porcelli
Sent: Monday, January 26, 2004 1:43 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Email Failed Backups Only


We currently have backup info emailed via the Host Properties(Global
Properties) option in the GUI. This emails successful backups as well as
failures.

Is there any way to setup NetBackup to only email 
failed backups.

Thanks a lot.
==
Paul Porcelli


Visit us at www.aggreko.com 

________________________________________________________________________
 
  Confidentiality Notice:  This  communication  and  any  accompanying
  attachments contain confidential information intended for a specific
  individual and purpose.  This communication is private and protected
  by law.  If  you are  not the  intended  recipient,  you are  hereby
  respectfully  notified that any disclosures,  copying, forwarding or
  distribution, or the  taking of any action  based on the contents of
  this communication is strictly prohibited.
________________________________________________________________________

_______________________________________________
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


<Prev in Thread] Current Thread [Next in Thread>