Re: Daily Backup Report
2002-04-16 10:37:43
I have the following script as a POSTSCHEDCMD option in the dsm.sys. This
works real well. I receive a mail every night immediatly after the backup
ran.
in the dsm.sys:
POSTSCHEDULECMD /audit_logs/scripts/adsm.mail
#!/usr/bin/ksh
STAMPIT=`date +"%y%m%d"`
MAILCNTRL=/audit_logs/scripts/mail.central
MAILFLE=/var/adm/tsm/mail.file
CUT_FLE=/var/adm/tsm/cut_adsmlog
>$MAILFLE
HOST=`hostname -s`
OWNER=`grep "^${HOST}_adsm_bklog=" $MAILCNTRL | cut -f2 -d'=' | tail -1`
grep "^`date +"%m/%d/%y"`" /var/adm/tsm/sched.log >$MAILFLE
if [[ $? = 0 ]]
then
SUBJ="ADSM Backups - $HOST $STAMPIT"
tail -20 $MAILFLE >$CUT_FLE
else
SUBJ="No Backups Were Taken"
fi
mail -s "$SUBJ" $OWNER <$CUT_FLE
rm $CUT_FLE
exit 0
Orin Rehorst wrote:
> What are some good ways to get an automated daily report on which clients
> were or were no backed up successfully?
>
> TIA,
>
> Regards,
> Orin
>
> Orin Rehorst
> Port of Houston Authority
> (Largest U.S. port in foreign tonnage)
> e-mail: rehorst AT poha DOT com <mailto:rehorst AT poha DOT com>
> Phone: (713)670-2443
> Fax: (713)670-2457
> TOPAS web site: <www.homestead.com/topas/topas.html
> <http://www.homestead.com/topas/topas.html> >
--
******************************************************
******************************************************
* Frank Kruse fkruse AT us.ibm DOT com *
* IBM Austin 512-823-7475 *
******************************************************
|
|
|