Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2012 10:59:55 +0000
From:      tzabal@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r239905 - soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport
Message-ID:  <20120730105955.887511065672@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tzabal
Date: Mon Jul 30 10:59:54 2012
New Revision: 239905
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=239905

Log:
  Changes in the formation of the report.

Modified:
  soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport/crashreport.sh

Modified: soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport/crashreport.sh
==============================================================================
--- soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport/crashreport.sh	Mon Jul 30 08:56:56 2012	(r239904)
+++ soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport/crashreport.sh	Mon Jul 30 10:59:54 2012	(r239905)
@@ -160,7 +160,7 @@
 
 ## Form the report
 data=`mktemp /tmp/crashreport.XXXXXX`
-commands1="date/3;hostname/5;ostype/6;osrelease/7;version/8;machine/9"
+commands1="crashdate/3;hostname/5;ostype/6;osrelease/7;version/8;machine/9"
 commands2="ps -axl;vmstat -s;vmstat -m;vmstat -z;vmstat -i;pstat -T;pstat -s;\
 iostat;ipcs -a;ipcs -T;nfsstat;netstat -s;netstat -m;netstat -id;netstat -anr;\
 netstat -anA;netstat -aL;fstat;dmesg;kernel config;ddb capture buffer"
@@ -179,7 +179,14 @@
 echo "${_email}" >> ${data}
 echo "</email>" >> ${data}
 
-echo "<type>" >> ${data}
+echo "</header>" >> ${data}
+echo "<body>" >> ${data}
+
+echo "<command>" >> ${data}
+echo "<name>" >> ${data}
+echo "crashtype" >> ${data}
+echo "</name>" >> ${data}
+echo "<result>" >> ${data}
 output=`file "${_dumpdir}/${_file}"`
 if echo "${output}" | grep 'POSIX tar archive' > /dev/null; then
         type='textdump'
@@ -190,10 +197,8 @@
         exit 1
 fi
 echo "${type}" >> ${data}
-echo "</type>" >> ${data}
-
-echo "</header>" >> ${data}
-echo "<body>" >> ${data}
+echo "</result>" >> ${data}
+echo "</command>" >> ${data}
 
 if [ "${type}" == 'vmcore' ]; then
 	# A temporary-auxiliary file for the extraction



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120730105955.887511065672>