From d592cf413b3d9ccb8245cf6409fec3a145da2135 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Tue, 11 Dec 2012 18:55:19 +0000 Subject: Add more commands to iscsi initiator module Add additional iscsiadm command collection to the iscsi module and check for the iscsi-initiator-utils package on Red Hat systems. --- sos/plugins/iscsi.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sos/plugins/iscsi.py b/sos/plugins/iscsi.py index 3c7c1bfd..c02b9f62 100644 --- a/sos/plugins/iscsi.py +++ b/sos/plugins/iscsi.py @@ -24,10 +24,16 @@ class iscsi(Plugin): class RedHatIscsi(iscsi, RedHatPlugin): """iscsi-initiator related information Red Hat based distributions """ + + packages = ('iscsi-initiator-utils',) + def setup(self): super(RedHatIscsi, self).setup() self.addCopySpecs([ "/etc/iscsi/iscsid.conf", "/etc/iscsi/initiatorname.iscsi", "/var/lib/iscsi"]) - + self.collectExtOutput("iscsiadm -m session -P 3") + self.collectExtOutput("iscsiadm -m node -P 3") + self.collectExtOutput("iscsiadm -m iface -P 1") + self.collectExtOutput("iscsiadm -m node --op=show") -- cgit