socsvn commit: r239905 - soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport

tzabal at FreeBSD.org tzabal at FreeBSD.org
Mon Jul 30 10:59:56 UTC 2012


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


More information about the svn-soc-all mailing list