diff options
author | davecore82 <davecoronel@gmail.com> | 2017-06-13 15:57:25 -0400 |
---|---|---|
committer | Adam Stokes <battlemidget@users.noreply.github.com> | 2017-06-13 15:57:25 -0400 |
commit | b45ed8e18c395009103effb0b7b109bf167787f8 (patch) | |
tree | 8eee8dc651e9f80122886391a60069df94d06588 | |
parent | 6594ee1786e59ed67393cb928cd728158d0bf86f (diff) | |
download | sos-b45ed8e18c395009103effb0b7b109bf167787f8.tar.gz |
[hardware] add /sys/class/dmi/id/* (#1037)
Collect the entire /sys/class/dmi/id/ directory from the
hardware plugin. Today, this is really the "native" format for
this information, as far as Linux is concerned. The dmidecode
program (which historically at least read the data directly
from firmware tables, as no proc or sysfs interface existed) is
a legacy formatting of this information which we are
unfortunately obliged to keep around a little longer yet, as
many users have grown dependencies on its format.
The data included in this directory is small (about 500 bytes
on my system) and will not have an impact on the time or size
of the report.
Original discussion at:
https://github.com/sosreport/sos/pull/1034
Signed-off-by: David Coronel <david.coronel@canonical.com>
Signed-off-by: Adam Stokes <battlemidget@users.noreply.github.com>
-rw-r--r-- | sos/plugins/hardware.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/hardware.py b/sos/plugins/hardware.py index 36baa1bd..6b462e12 100644 --- a/sos/plugins/hardware.py +++ b/sos/plugins/hardware.py @@ -29,7 +29,8 @@ class Hardware(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "/proc/dma", "/proc/devices", "/proc/rtc", - "/var/log/mcelog" + "/var/log/mcelog", + "/sys/class/dmi/id/*" ]) self.add_cmd_output("dmidecode", root_symlink="dmidecode") |