Check in the {install path}/netbackup/bin directory for a file called backup_exit_notify
NOTE - this gets overwritten when you patch - make a backup of all changes!
Here is some info from the script:
# This script:
# receives 5 parameters:
# CLIENT - the client hostname
# POLICY - the policy label
# SCHEDULE - the schedule label
# SCHEDULE_TYPE - the type of schedule: FULL INCR UBAK UARC
# STATUS - the backup status for this job
# STREAM - the backup stream number for this jobk
# must be executable by the root user
# should exit with 0 upon successful completion
#
So you can report based on any of these values.
The script echoes these vaules to $OUTF, so I email that!
It suggests that in the script!
# might want to mail this info to someone
#
# cat $OUTF | mail -s "NetBackup backup exit" someone_who_cares
# insert before exit
I use mailx to email instead of mail - windows uses blat? That is your OS level responsibiliy.
My script has these options:
# check value of #5 - job status, don't worry about 0,1,150, or 191
# check value of #3 - schedule name, exclude DBA child jobs
# check values of #2 - send to appropriate groups, and OPS
if [ $5 != 0 -a $5 != 1 -a $5 != 150 -a $5 != 191 -a $3 != "Child.Job" ]
then
if /usr/openv/netbackup/bin/admincmd/bppllist $2 -U | grep "Policy Type" | grep MS-Window
then
cat $OUTF | /usr/bin/mailx -s "WINDOWS NetBackup Error Status $5, Policy $2, Client $1" \
operations.email.address WIN.GROUP.email.address
elif /usr/openv/netbackup/bin/admincmd/bppllist $2 -U | grep "Policy Type" | grep MS-Exchange
then
cat $OUTF | /usr/bin/mailx -s "EXCHANGE NetBackup Error Status $5, Policy $2, Client $1" \
operations.email.address EMAIL.GROUP.email.address
elif /usr/openv/netbackup/bin/admincmd/bppllist $2 -U | grep "Policy Type" | grep MS-SQL
then
cat $OUTF | /usr/bin/mailx -s "MS-SQL NetBackup Error Status $5, Policy $2, Client $1" \
operations.email.address DBA.GROUP.email.address
elif /usr/openv/netbackup/bin/admincmd/bppllist $2 -U | grep "Policy Type" | grep Oracle
then
cat $OUTF | /usr/bin/mailx -s "ORACLE NetBackup Error Status $5, Policy $2, Client $1" \
operations.email.address DBA.GROUP.email.address
elif /usr/openv/netbackup/bin/admincmd/bppllist $2 -U | grep "Policy Type" | grep Sybase
then
cat $OUTF | /usr/bin/mailx -s "SYBASE NetBackup Error Status $5, Policy $2, Client $1" \
operations.email.address DBA.GROUP.email.address
else
cat $OUTF | /usr/bin/mailx -s "UNIX NetBackup Error Status $5, Policy $2, Client $1" \
operations.email.address UNIX.GROUP.email.address
fi
fi
# I have one special customer that wants to have a notification of EVERY job
# I use their client name to find their jobs
CLIENT=`echo $1 | /usr/bin/tr "[:upper:]" "[:lower:]" | cut -c1-4`
if [ $CLIENT = CUST ]
then
cat $OUTF | /usr/bin/mailx -s "CUST Backup Notification - Error Status $5, Policy $2, Client $1" CUST.email.address
fi