From c5a772df3c7c62a77c325f356cc156c505ede926 Mon Sep 17 00:00:00 2001 From: John Pittman Date: Thu, 29 Nov 2018 20:45:09 -0500 Subject: [scsi] collect scsi_host sysfs host values The scsi_host attributes can be very important when identifying LLD/shost level issues. Add host value collection via udevadm. Signed-off-by: John Pittman Signed-off-by: Bryn M. Reeves --- sos/plugins/scsi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sos/plugins/scsi.py b/sos/plugins/scsi.py index d3b2c332..3be613c6 100644 --- a/sos/plugins/scsi.py +++ b/sos/plugins/scsi.py @@ -6,6 +6,8 @@ # # See the LICENSE file in the source distribution for further information. +import os +from glob import glob from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin @@ -32,4 +34,7 @@ class Scsi(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): "sg_map -x" ]) + scsi_hosts = glob("/sys/class/scsi_host/*") + self.add_udev_info(scsi_hosts, attrs=True) + # vim: set et ts=4 sw=4 : -- cgit