aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/report/plugins/scsi.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/sos/report/plugins/scsi.py b/sos/report/plugins/scsi.py
index 28d1396c..363fc8a4 100644
--- a/sos/report/plugins/scsi.py
+++ b/sos/report/plugins/scsi.py
@@ -11,6 +11,17 @@ from sos.report.plugins import Plugin, IndependentPlugin
class Scsi(Plugin, IndependentPlugin):
+ """
+ Collects various information about the SCSI devices install on the host
+ system.
+
+ This plugin will capture a large amount of data from the /sys filesystem,
+ as well as several different invocations of the `lsscsi` command.
+
+ Additionally, several `sg_persist` commands will be collected for each
+ SCSI device identified by sos. Note that in most cases these commands are
+ provided by the `sg3_utils` package which may not be present by default.
+ """
short_desc = 'SCSI devices'
@@ -46,4 +57,11 @@ class Scsi(Plugin, IndependentPlugin):
self.add_blockdev_cmd("udevadm info -a %(dev)s", devices=scsi_hosts,
prepend_path='/sys/class/scsi_host')
+ self.add_blockdev_cmd([
+ "sg_persist --in -k -d %(dev)s",
+ "sg_persist --in -r -d %(dev)s",
+ "sg_persist --in -s -d %(dev)s",
+ "sg_inq %(dev)s"
+ ], whitelist=['sd.*'])
+
# vim: set et ts=4 sw=4 :