SUMMARY: core reading script?

From: sampson@iex.com
Date: Fri Mar 17 1995 - 09:40:36 CST


Hello, all. I've forwarded the corecheck script I requested yesterday to all of you. I've
recieved several requests for it. Thanks to Claus Assmann for sending it to me!

On Fri, 17 Mar 1995 14:21:43 +0100 (MET) Claus Assmann wrote:
>>
>> Hello --
>>
>> A couple of years ago a script was floating around on this group which would look at c
core
>> dump and give some basic info on the cause of the crash. Since getting and using a copy
of
>> it I've changed jobs, and was hoping someone could forward it to me again. I've
>> unfortunately forgotten the name of it.. :-(
>
>Hi !
>
>Here is the corecheck script:
>
>#!/bin/sh
>#set -x
>#
># name this script corecheck and execure it with "corecheck 1 2 3" if
># you have three corefiles.
>#
># NOTE: YOU HAVE TO RUN THIS SCRIPT ON THE SAME SUNOS AND KERNEL ARCH AS
># THE MACHINE THAT PRODUCED THE COREDUMPS.
>#
>for i in "$@"
>do
>
> if [ $i = -1 ]
> then
> VMCORE=/dev/mem
> VMUNIX=/vmunix
> else
> VMCORE=vmcore.$i
> VMUNIX=vmunix.$i
> fi
>
> echo "=================== $VMUNIX & $VMCORE ==================="
> echo
> echo "adb symbolic traceback:"
> echo \$c | adb -k $VMUNIX $VMCORE
> echo
>
> echo "same stuff from crash:"
> echo trace | crash -d $VMCORE -n $VMUNIX
> echo
> echo
>
> echo "crash status:"
> echo status | crash -d $VMCORE -n $VMUNIX
> echo
> echo
>
> echo "pstat -T:"
> /usr/etc/pstat -T $VMUNIX $VMCORE
> echo
>
> echo "adb msgbuf:"
> echo msgbuf,80/s | adb -k $VMUNIX $VMCORE
> echo
>
> echo "ps:"
> ps awwgxlk $VMUNIX $VMCORE
> echo
>
>done
>exit 0
>------------------------------------------------------------
>
>Regards,
>
>Claus
>

-------------------------------------
Mike Sampson
System Administrator
IEX Corporation
E-mail: sampson@iex.com
Corp. phone: 214-301-1300
Corp. Fax: 214-301-1200
http://www.iex.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:18 CDT