[Veritas-bu] Backup status
2003-08-10 14:56:23
Hi,
I would like to have only one entry per policy in the
output. This does not happen, if the policy is using
multi-streaming. For every multistreamed session there is a
corresponding output. Is there a way to consolidate the output
of the multistreamed sessions status of a backup into one line
of output?
thanks
From: "Brzozowski, Dwayne" <Dwayne.Brzozowski AT mail.va DOT gov>
To: rajman AT ureach DOT com
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Backup status
Date: Wed, 6 Aug 2003 18:14:55 -0500
This is what I wrote (shell script) to send reports to customers
daily.
BUreport.sh
CUST=$1
LOG=/tmp/$CUST-backup-report.log
/usr/bin/date > $LOG
/usr/bin/echo >> $LOG
/usr/bin/echo >> $LOG
/usr/openv/netbackup/bin/admincmd/bperror -U -backstat |
/usr/xpg4/bin/grep
-E 'STAT|'$CUST'' >> $LOG
/usr/bin/echo >> $LOG
for i in `/usr/bin/cat $LOG | /usr/bin/awk '{print $1}' |
/usr/bin/sort -un`
do
if [ $i -gt 0 ]
then
/usr/bin/echo >> $LOG
/usr/bin/echo "The status code $i means:" >> $LOG
/usr/openv/netbackup/bin/admincmd/bperror -S $i >> $LOG
fi
done
/usr/bin/cat $LOG
I have this in root's cron like:
/usr/local/scripts/BUreport.sh POLICY_NAME|mailx -s
"COMMENT" username
It will list the following:
Wed Aug 6 06:30:01 CDT 2003
STATUS CLIENT POLICY SCHED SERVER
TIME COMPLETED
and for status other than 0, will list the Veritas explanation
of that code.
Hope this helps!
-Dwayne
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
|
|
|