Veritas-bu

[Veritas-bu] notify from different backup classes

2001-08-14 19:36:08
Subject: [Veritas-bu] notify from different backup classes
From: llabonte AT att DOT com (Labonte, L R (Leo), SITS)
Date: Tue, 14 Aug 2001 19:36:08 -0400
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

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