rendered paste bodye0120486@acilf002:/export/home/midlware/scripts $ cat wbi_error_report.ksh
#!/usr/bin/ksh
MAILLIST="alltel.tsg.enterprise.integration.support@alltel.com"
if [ $1 ] ; then
searchdate=$1
else
searchdate=`date '+%Y%m%d'`
fi
results=`/ldaphome/e0119990/xgrep.ksh "fgrep '$searchdate'" /WebSphereAdapters/connectors/JText/ErrJText/out/ERR_LOG_${searchdate} | cut -d [ -f 6 | cut -d : -f 2,3,4 | sort | uniq -c`
undefined=`/ldaphome/e0119990/xgrep.ksh "fgrep '$searchdate'" /WebSphereAdapters/connectors/JText/ErrJText/out/ERR_LOG_${searchdate} | fgrep 'ErrorCounter: ,' | cut -d [ -f 6 | cut -d : -f 2,3,4 | sort | uniq -c`
mail -t $MAILLIST << EOF
Subject:$searchdate wbip01X ErrorService error counts by error code
This email contains the number of times the error codes ocurred on $searchdate.
Please do not reply to this email.
$results
UNDEFINED ERRORS
$undefined
EOF