×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

support utilities

Display reasons for all appliaction cores by MoshiachNow
Posted: 24 Aug 03 (Edited 24 Aug 03)

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

Back to IBM: AIX FAQ Index
Back to IBM: AIX Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close