From 26b1ee34f3392bf07aa2062daf57ffe31629bf0f Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Tue, 30 Apr 2013 18:02:54 +0100 Subject: 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 --- sos/plugins/hardware.py | 39 ++------------------------------------- 1 file 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 -- cgit