diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2012-11-29 18:42:14 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2012-11-29 18:42:14 +0000 |
commit | 4120198315705fc590ec29728027d4363668e0d2 (patch) | |
tree | 917e55adb618e3b4707d4bbd990902e46726ea93 | |
parent | 2d4fae82a2173fa8997b08a32bcfad914738b6ca (diff) | |
download | sos-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.py | 6 |
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") |