diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2013-04-30 18:02:54 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2013-04-30 18:02:54 +0100 |
commit | 26b1ee34f3392bf07aa2062daf57ffe31629bf0f (patch) | |
tree | 1429880577cd078b8172536a1a34c471bc9a9f49 | |
parent | af5e6f75f8ca7794e34f6b57ced9d2ec683564af (diff) | |
download | sos-26b1ee34f3392bf07aa2062daf57ffe31629bf0f.tar.gz |
Remove redundant data collection from hardware.py
The hardware plug-in has been split up into separate ata, block,
pci, scsi, and usb plug-ins remove the data collected for these
subsystems from the hardware module.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/hardware.py | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/sos/plugins/hardware.py b/sos/plugins/hardware.py index 244dbba7..eda00604 100644 --- a/sos/plugins/hardware.py +++ b/sos/plugins/hardware.py @@ -24,51 +24,16 @@ class Hardware(Plugin): def setup(self): self.add_copy_specs([ - "/proc/partitions", - "/proc/cpuinfo", - "/proc/meminfo", - "/proc/ioports", - "/proc/iomem", "/proc/interrupts", "/proc/irq", - "/proc/scsi", "/proc/dma", "/proc/devices", "/proc/rtc", - "/proc/ide", - "/proc/bus", - "/etc/stinit.def", - "/proc/chandev", - "/proc/dasd", - "/proc/s390dbf/tape", - "/sys/bus/scsi", - "/sys/state", - "/sys/firmware/acpi/tables", - "/var/log/mcelog"]) - self.add_cmd_output("""echo -e "lspci:\n" ; lspci ; echo -e "\nlspci -nvv:\n" ; /sbin/lspci -nvv ; echo -e "\nlspci -tv:\n" ; /sbin/lspci -tv""", suggest_filename = "lspci", root_symlink = "lspci") + "/var/log/mcelog" + ]) self.add_cmd_output("dmidecode", root_symlink = "dmidecode") - if self.policy().pkg_by_name("cpufreq-utils"): - self.add_cmd_output("cpufreq-info") - self.add_cmd_output("cpupower info") - self.add_cmd_output("cpupower frequency-info") - - if self.policy().pkg_by_name("kernel-tools"): - self.add_cmd_output("cpupower info") - self.add_cmd_output("cpupower frequency-info") - self.add_cmd_output("cpupower idle-info") - - if self.policy().get_arch().endswith("386"): - self.add_cmd_output("x86info -a") - - self.add_cmd_output("lsusb") - self.add_cmd_output("lsusb -v") - self.add_cmd_output("lsusb -t") - - self.add_cmd_output("lshal") - self.add_cmd_output("systool -c fc_host -v") - self.add_cmd_output("systool -c scsi_host -v") class RedHatHardware(Hardware, RedHatPlugin): """hardware related information for Red Hat distribution |