Veritas-bu

[Veritas-bu] RE: Veritas-bu digest, Vol 1 #2543 - 10 msgs

2003-09-24 07:22:50
Subject: [Veritas-bu] RE: Veritas-bu digest, Vol 1 #2543 - 10 msgs
From: scottd AT HanoverDirect DOT com (Deiter Scott)
Date: Wed, 24 Sep 2003 07:22:50 -0400
Here is a code snippet from our backup_exit_nofity script.
Above this we exit on status zero or one.
==============================================

############################################################################
#
# # Create an email for failed exits

echo 'Subject: '$1' backup notification'    >> $OUTF
echo `date` "-----------------------------" >> $OUTF
echo `date` "       CLIENT:  $1" >> $OUTF
echo `date` "       POLICY:  $2" >> $OUTF
echo `date` "     SCHEDULE:  $3" >> $OUTF
echo `date` "SCHEDULE TYPE:  $4" >> $OUTF
echo `date` "       STATUS:  $5" >> $OUTF
echo `date` "       STREAM:  $6" >> $OUTF
echo `date` "-----------------------------" >> $OUTF
echo 'Status code >> '`/usr/openv/netbackup/bin/goodies/bperrcode $5` >>
$OUTF
echo ' End of message             ' >> $OUTF


############################################################################
#
# # Send the message in email

cat $OUTF | mail NBUusers

======================================================
Below is the snippet that generates a daily report of all the backup
activity.
We then mail this to a distribution list.

I'd like to see other methods


=========================================================

# -------------------------------------
echo "
 BACKUP STATUS LIST
-------------------------------------------- 
" >> $OUTFILE
$BPERROR -U -backstat -hoursago $HOURS 1>>$OUTFILE 2>&1
echo "
 Recently Used Media:
----------------------------------------------
" >> $OUTFILE
$BPIMAGELIST -A -media -hoursago $HOURS 1>>$OUTFILE 2>&1

# -------------------------------------
echo "
 BACKUP PROBLEM LIST
----------------------------------------------
" >> $OUTFILE
$BPERROR -U -problems -hoursago $HOURS 1>>$OUTFILE 2>&1
# -------------------------------------
echo "
 TAPE CLEANING STATS
-----------------------------------------------
" >> $OUTFILE
/usr/openv/netbackup/bin/goodies/cleanstats 1>>$OUTFILE 2>&1
==================================================================

>From   Scott Deiter
        Hanover Direct, Inc.
        Tech services
        (717) 633-3298
        scottd AT hanoverdirect DOT com



-----Original Message-----
From: Ajay Sharma [mailto:Ajay.Sharma AT hostcentric DOT com]
Sent: Tuesday, September 23, 2003 7:10 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] RE: Veritas-bu digest, Vol 1 #2543 - 10 msgs


I am looking for something similar that will send out an explation of the
failure status code troubleshooting information from bperror.

Thanks
Ajay
Hostcentric Technology Inc.
Ph 510 979 3100.

-----Original Message-----
From: Goldfarb, Josh [mailto:Josh.Goldfarb AT blackrock DOT com]
Sent: Tuesday, September 23, 2003 2:47 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] RE: Veritas-bu digest, Vol 1 #2543 - 10 msgs


Question regarding backup_exit_notify scripts.  I am looking for a
little more customization in our scripts.  I was hoping that I would be
able to put the media server that actually produced the error.  I was
wondering if anyone was willing to share there notify scripts.

Thanks so much
Josh



Josh Goldfarb
BlackRock Financial Management Inc.
BlackRock Solutions - Technology USA
40 East 52nd Street
NY, NY 10022
Phone: 212.409.3702


_______________________________________________
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