You could also include the logic in the backup_exit_notify script to check
the backup type (standard, NT, Oracle, etc) and send out mail based on that.
Ken Zufall
330.202.4113
"We don't call you son because you're bright." - My Father
-----Original Message-----
From: Labonte, L R (Leo), SITS [mailto:llabonte AT att DOT
com]
Sent: Tuesday, August 14, 2001 7:36 PM
To: Hodge, Sonja J. (Gregory);
'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: RE: [Veritas-bu] notify from different
backup classes
Sonja,
This is a primative, but effective, change we made to the
mail_bp_reports
script. A section of code like the one attached is inserted
for every
cluster of backup clients producing a report. The contents
of certain
/tmp files are reused in other code sections. This script
is run from cron
at 09:00, and our SA's get customized reports on the status
of the previous
night's backups. It was quick and dirty, but folks are
getting what they
want.
Leo
.
.
.
.
echo "
" >> $OUTFILE
$BPERROR -U -backstat -hoursago $HOURS 1>>$OUTFILE 2>&1
echo "
Recently Used Media:
" >> $OUTFILE
$BPIMAGELIST -A -media -hoursago $HOURS 1>>$OUTFILE 2>&1
grep client1 $OUTFILE >/tmp/OUTFILE1$$
grep client2 $OUTFILE >>/tmp/OUTFILE1$$
grep client3 $OUTFILE >>/tmp/OUTFILE1$$
grep client4 $OUTFILE >>/tmp/OUTFILE1$$
grep client5 $OUTFILE >>/tmp/OUTFILE1$$
echo "STATUS CLIENT CLASS SCHEDULE
SERVER TIME
COMPLETED" >/tmp/OUTFILE2$$
cat /tmp/OUTFILE2$$ >/tmp/OUTFILE4$$
sort /tmp/OUTFILE1$$ | uniq >>/tmp/OUTFILE4$$
echo
"---------------------------------------------------------------------------
-----" >/tmp/OUTFILE3$$
echo "Status Code: 0 - Completely Successful; 1 - Partially
Successful"
>>/tmp/OUTFILE3$$
echo " 41 - Network Connection Timed Out; 57 -
Client Connection
Refused" >>/tmp/OUTFILE3$$
cat /tmp/OUTFILE3$$ >>/tmp/OUTFILE4$$
cat /tmp/OUTFILE4$$ | $MAIL -s "NetBackup backup status"
sys_admin_ray AT att DOT com sys_admin_sally AT att DOT com
.
.
.
.
-----Original Message-----
From: Labonte, L R (Leo), SITS
Sent: Tuesday, August 14, 2001 5:39 PM
To: Hodge, Sonja J. (Gregory);
'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: RE: [Veritas-bu] notify from different backup
classes
Sonja,
We hacked the
/usr/openv/netbackup/bin/goodies/mail_bp_reports
script to accomplish this.
Leo
-----Original Message-----
From: Hodge, Sonja J. (Gregory) [mailto:sgregory AT tigr DOT
org]
Sent: Tuesday, August 14, 2001 4:57 PM
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: [Veritas-bu] notify from different backup classes
Hi,
This question is based on Netbackup software. Regarding
email notification
- is it possible to specify more than one recipient of the
notification,
depending on which class of clients the message is
regarding? For instance,
a Sr Unix Admin would want to be notified if a backup failed
on one of his
servers, whereas he would NOT want to know about every time
a backup failed
on an NT workstation client, but might want an NT Admin to
be notified.
Thanks for any help,
Sonja Hodge
Systems Administrator
The Institute for Genomic Research
Rockville, MD
sgregory AT tigr DOT org
_______________________________________________
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
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|