Re: [Veritas-bu] modify backup_exit_notify.sh script
2009-06-24 09:45:56
By default, though, Netbackup is
pouring email out for every backup through a different script or executable
which I've never found. By default, the mail lines below are commented out.
If anyone knows Netbackup's
usual facility for spam, I'd love to look at it to see if it could be
modified.
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Howard
Sherman
Sent: Tuesday, June 23, 2009 8:26 PM
To: Mark Glazerman; veritas-bu
Subject: Re: [Veritas-bu] modify backup_exit_notify.sh script
Mark,
The exit status of the backup is passed in as $5 to the script. So, if you want
emails only for jobs ending in a non-zero exit status, you can modify the line
cat $OUTF | mailx -s "Backup on $1 - $5" someone_who_cares
to
if [ "$5" -gt 0 ]
then
cat $OUTF | mailx -s "Backup on $1 - $5" someone_who_cares
fi
Hope
this helps.
From: Mark Glazerman
<Mark.Glazerman AT spartech DOT com>
To: veritas-bu <veritas-bu AT mailman.eng.auburn DOT edu>
Sent: Tuesday, June 23, 2009 2:52:54 PM
Subject: [Veritas-bu] modify backup_exit_notify.sh script
My shell scripting is shaky at best so I’m hoping that one
of you may be able to help me out.
I’m wondering how I would go about editing the
/usr/openv/netbackup/bin/backup_exit_notify.sh script so that it doesn’t inform
me via email of successfully completed backups. Basically I’m only interested
in backups that complete with a 1 or higher.
I have modified our bp.conf to keep 3 months of jobs in the
activity monitor so will be able to check here for successful backups. I
really only need to be informed if a backup has failed.
Thanks in advance,
Mark Glazerman
Enterprise Storage Administrator
Spartech Corporation
Desk: 314-889-8282
Fax: 314-854-8282
Cell: 618-520-3401
mark.glazerman AT spartech DOT com
http://www.spartech.com
P please
don't print this e-mail unless you really need to
This
e-mail and any files transmitted with it are confidential, are intended solely
for the use of the addressee, and may be legally privileged. If you have
received this email in error please notify the sender immediately, and do not
copy or forward it.
|
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|