#!/bin/sh # # Developed by Sun Microsystems, Inc. # 2550 Garcia Avenue # Mountain View, California 94043 # # Copyright (c) 1996,1997, Sun Microsystems, Inc. # # RESTRICTED RIGHTS: Use, duplication or disclosure by the government is # subject to the restrictions as set forth in # subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer # Software Clause as DFARS 252.227-7013 and FAR 52.227-19. # # SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF # THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR # PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES # SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS # SOFTWARE OR ITS DERIVATIVES. # # By using or copying this Software, Licensee agrees to abide by the # intellectual property laws, and all other applicable laws of the U.S., # and the terms of this license. # # ---------------------------------------------------------------------- # # iscda -- Script to print out Initial System Crash Dump Analysis # # History: # # Edit 1 940707 krb First script for Solaris 2.3, Rev 1.0 # Edit 2 950220 krb Ported to Solaris 2.4 # Edit 3 950830 krb Time to start cleaning this up a bit # Edit 4 960122 cjd Some 2.4 changes; put in more "conditional" # execution of specific commands. # # Files this script creates: # # /tmp/iscda.{pid} # # Notes: # # This script must be run on the same kernel architecture and # under the same OS as the system crash dump we are analyzing. # # ---------------------------------------------------------------------- if [ ! $# = 2 ] then echo echo "Usage: iscda unixfile corefile > your-output-file" echo echo "Examples: iscda unix.3 vmcore.3" echo " iscda /dev/ksyms /dev/mem" echo exit fi # # Make sure we can see the files. # if [ ! -f $1 ] && [ ! $1 = "/dev/ksyms" ] then echo; echo "Unable to locate $1. Exiting." echo; exit fi if [ ! -f $2 ] && [ ! $2 = "/dev/mem" ] then echo; echo "Unable to locate $2. Exiting." echo; exit fi PATH=${PATH}:/etc export PATH # Find the release we're dealing with. rel=`echo '$ $WHERE <n p j c a *time-(*c e $WHERE <n *ncstats*0t100%n *ncstats*0t100% $WHERE < $WHERE < $WHERE <