This script displaying reasons and time for application cores
This scripts displays the reasons for application core dumps (SOFTWARE PROGRAM ABNORMALLY TERMINATED)
Sample output:
Jul 16 09:13:47 tprom
Jul 15 15:35:14 tprom
Jul 15 15:22:29 tprom
Jun 18 14:43:00 tiffcompare
Jun 18 14:42:25 tiffcompare
Jun 18 14:41:50 tiffcompare
========================================
#!/bin/ksh
# Updated Aug 6, 2003
# Version 1.5
#This scripts display the reasons for application core dumps (SOFTWARE PROGRAM ABNORMALLY TERMINATED)
echo ôThe following are the reasons for the application dumps:ö
echo ô========================================================ö
if [[ `oslevel |cut -d. ûf 1` = ô5ö ]] ;then
ERROR=öAD2BA772ö
else
ERROR=öC60BB505ö
fi
DATE1=`errpt -a -j $ERROR | grep Date | awk '{ print $5 }' | cut -d: -f 1,2 |head -1`
for SEQUENCE in `errpt -a -j $ERROR |grep Sequence|cut -d: -f2`;do
DATE2=`errpt -a -j $ERROR -l $SEQUENCE | grep Date | awk '{ print $5 }' | cut -d: -f 1,2`
if [[ $DATE1 != $DATE2 ]] ;then
echo ô`errpt -l $SEQUENCE -a | grep Date | awk '{ print $3,$4,$5 }'` \c\tö
errpt -a -j $ERROR -l $SEQUENCE | awk '/PROGRAM NAME/,/ADDITIONAL INFORMATION/' | grep -vE "PROG|ADD"
DATE1=$DATE2
fi
done
exit
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.