aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-11-29 18:42:14 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-11-29 18:42:14 +0000
commit4120198315705fc590ec29728027d4363668e0d2 (patch)
tree917e55adb618e3b4707d4bbd990902e46726ea93
parent2d4fae82a2173fa8997b08a32bcfad914738b6ca (diff)
downloadsos-4120198315705fc590ec29728027d4363668e0d2.tar.gz
Tidy up lsusb collection and add -t option
Split lsusb back out into separate files and also collect lsusb -t output.
-rw-r--r--sos/plugins/hardware.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sos/plugins/hardware.py b/sos/plugins/hardware.py
index 762732c3..a196d366 100644
--- a/sos/plugins/hardware.py
+++ b/sos/plugins/hardware.py
@@ -47,8 +47,10 @@ class hardware(Plugin):
if self.policy().getArch().endswith("386"):
self.collectExtOutput("/usr/sbin/x86info -a")
-# self.collectExtOutput("/usr/sbin/lsusb")
- self.collectExtOutput("""/bin/echo -e "lsusb:\n" ; /usr/sbin/lsusb ; /bin/echo -e "\nlsusb -v:\n" ; /usr/sbin/lsusb -v""", suggest_filename = "lsusb")
+ self.collectExtOutput("/usr/bin/lsusb")
+ self.collectExtOutput("/usr/bin/lsusb -v")
+ self.collectExtOutput("/usr/bin/lsusb -t")
+
self.collectExtOutput("/usr/bin/lshal")
self.collectExtOutput("/usr/bin/systool -c fc_host -v")
self.collectExtOutput("/usr/bin/systool -c scsi_host -v")