Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report Automation

Status
Not open for further replies.

syjl

Technical User
Jan 17, 2001
102
US
How do I get the detailed list of problems encountered during the backup consolidated and emailed to me. I have a Solaris master and 2k media servers. I would like one email with the problems as seen in the detailed activity monitor screen. Any help???
 
I have a file that I run ever day and I manipulate the results from there - This may get you started on the right path ...

#!/bin/ksh
#
#
###############################################################################
#
# Name: DailyReport.ksh
# Purpose: This script reports on NEtBackup Activites
# Created by: Steve Staves
# Date Created: January 14th, 2001
# Modified: September 25th, 2003 by Steve Staves
# Modification: Additional Logging
#
###############################################################################
#
# Set up variables

OUTTEMP=d:/veritas/backupresults/temp.txt
OUTF=d:/veritas/backupresults/dailyreport.txt
SS=d:/veritas/backupresults/detailed.txt
RES=d:/veritas/backupresults
ADMIN=d:/veritas/netbackup/bin/admincmd

#################################################################
#
# Initialize Log File

if [ -f $OUTF ];then
rm $OUTF
fi

#################################################################
#
# Main Body of Script
$ADMIN/bpdbjobs -report -all_columns > $SS
cp c:/srvapps/ActiveBatch/Scripts/printheader.txt $OUTF
echo "BACKUP JOB SUMMARY for `date`" >> $OUTF
echo "================================================== " >> $OUTF
echo " " >> $OUTF
$ADMIN/bpdbjobs -summary -L >> $OUTF
echo " " >> $OUTF
echo "BACKUP JOB STATUS for `date`" >> $OUTF
echo "================================================== " >> $OUTF
echo " " >> $OUTF
$ADMIN/bpdbjobs.exe -report > $OUTTEMP
cat $OUTTEMP | sort -r -k 4,5 >> $OUTF
echo " " >> $OUTF

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top