From 5da92e8464f15cf89fd8d9e5c76c26663977ce10 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Sun, 25 Aug 2019 09:05:09 +0200 Subject: [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 Signed-off-by: Pavel Moravec --- sos/plugins/scsi.py | 6 ++---- 1 file 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) -- cgit