The script below reports errors in the RMAN logs by searching for the
"RMAN-00571" text. I was hoping to get a simple script that greps
for the text and if the text is not found then it will send an email to
the DBALIST stating "All RMAN backups completed successfully".
Thanks!





#!/bin/ksh

#

# Report RMAN errors and send email to DBA -
#



export DBALIST=dba@test.com

export date=`date`



grep -i "RMAN-00571" /u002/LOG/*/* > /u002/LOG/RMAN_error.log



mailx -s "${date} RMAN errors" $DBALIST < /u002/LOG/RMAN_error.log