]> xenbits.xen.org Git - xenclient/build.git/commitdiff
XC-596: Acquire a lot more data in status-report
authorChristopher Clark <christopher.clark@citrix.com>
Wed, 20 Jan 2010 10:46:17 +0000 (10:46 +0000)
committerChristopher Clark <christopher.clark@citrix.com>
Wed, 20 Jan 2010 10:46:17 +0000 (10:46 +0000)
target/generic/target_xenclient_skeleton/usr/bin/status-report

index 93a1e75f0c0f1b6ff79ee1a319b12acdb47813a9..38089e0b78c00880756aa3f0208f61b53ff696ab 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh -e
+#!/bin/sh
 
 name="`basename $0`"
 d="`date "+%Y%m%d%H%M%S"`"
@@ -84,6 +84,34 @@ save_out "xenops list" "xenops_list"
 save_out "brctl show" "brctl_show"
 save_out "ifconfig" "ifconfig"
 save_out "guest-process-stats" "guest-process-stats"
+save_out "df -h" "df-h"
+save_out "route -n" "route-n"
+save_out "cat /proc/acpi/thermal_zone/*/temperature" "temperature"
+save_out "cat /proc/cpuinfo" "cpuinfo"
+save_out "find / -size +1000k -exec ls -l {} ; " "large-files"
+save_out "lsmod" "lsmod"
+save_out "xentop -i 1 -b" "xentop"
+save_out "top -b -n1" "top"
+save_out "netstat -l" "netstat-l"
+save_out "netstat -tn" "netstat-tn"
+save_out "ps aux" "psaux"
+save_out "cat /proc/swaps" "swaps"
+save_out "lvs" "lvs"
+save_out "pvs" "pvs"
+save_out "sfdisk -l" "sfdisk-l"
+save_out "lspci -vvv" "lspci-vvv"
+save_out "ping -c1 -w 5 iovm" "ping-iovm"
+
+# Note that xenstore-ls can block without xenstored,
+# so verify xenstored is running first:
+if ps aux | grep -q xenstored ; then
+    save_out "xenstore-ls" "xenstore-ls"
+else
+    save_out "echo xenstored not running" "xenstore-ls"
+fi
+
+save_out "iwlist scan" "iwlist-scan"
+save_out "cat /proc/acpi/ac_adapter/AC/state" "ac_adapter-state"
 main_file
 sync