Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display reasons for all appliaction cores

support utilities

Display reasons for all appliaction cores

by  MoshiachNow  Posted    (Edited  )
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
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top