diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2019-08-25 09:05:09 +0200 |
---|---|---|
committer | Pavel Moravec <pmoravec@redhat.com> | 2019-08-25 09:05:09 +0200 |
commit | 5da92e8464f15cf89fd8d9e5c76c26663977ce10 (patch) | |
tree | baffdb6b41014ff5c79447b317ff52ecc1a6c7e4 | |
parent | cda09a60bad174864104376453d23df34451a04e (diff) | |
download | sos-5da92e8464f15cf89fd8d9e5c76c26663977ce10.tar.gz |
[scsi] call lsscsi with "-i" option
To get the WWID sd device combination in a single command.
Resolves: #1626
Signed-off-by: Nitin U. Yewale <nyewale@redhat.com>
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/scsi.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sos/plugins/scsi.py b/sos/plugins/scsi.py index 3be613c6..b65dce4e 100644 --- a/sos/plugins/scsi.py +++ b/sos/plugins/scsi.py @@ -29,10 +29,8 @@ class Scsi(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): "/sys/class/scsi_generic" ]) - self.add_cmd_output([ - "lsscsi", - "sg_map -x" - ]) + self.add_cmd_output("lsscsi -i", suggest_filename="lsscsi") + self.add_cmd_output("sg_map -x") scsi_hosts = glob("/sys/class/scsi_host/*") self.add_udev_info(scsi_hosts, attrs=True) |