diff options
author | Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> | 2020-05-20 14:05:48 +0530 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-06-03 11:19:30 -0400 |
commit | 2826d4ad19afaa91e2e25970eafe9353d844bfac (patch) | |
tree | ce5b0f2ac435dc6c27225f779c7901f36c71ee9e | |
parent | 56bfae87ee5e613bb6743026a7285320f19e66d5 (diff) | |
download | sos-2826d4ad19afaa91e2e25970eafe9353d844bfac.tar.gz |
[scsi]:Add support to collect scsi logs
This patch updates scsi plugin to collect
virtual I/O server information.
This patch reads lspath, lsmap and lsnports data
which provides information about virtual device
path, ports and mapping Information
Related: #2078
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/scsi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/report/plugins/scsi.py b/sos/report/plugins/scsi.py index bf6c2862..7a8efabb 100644 --- a/sos/report/plugins/scsi.py +++ b/sos/report/plugins/scsi.py @@ -30,6 +30,9 @@ class Scsi(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): self.add_cmd_output("lsscsi -i", suggest_filename="lsscsi") self.add_cmd_output("sg_map -x") + self.add_cmd_output("lspath") + self.add_cmd_output("lsmap -all") + self.add_cmd_output("lsnports") scsi_hosts = glob("/sys/class/scsi_host/*") self.add_blockdev_cmd("udevadm info -a %(dev)s", devices=scsi_hosts, |