aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/report/plugins/fibrechannel.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/sos/report/plugins/fibrechannel.py b/sos/report/plugins/fibrechannel.py
index 4e24d0d8..cd21d5da 100644
--- a/sos/report/plugins/fibrechannel.py
+++ b/sos/report/plugins/fibrechannel.py
@@ -33,4 +33,20 @@ class Fibrechannel(Plugin, RedHatPlugin):
if self.get_option('debug'):
self.add_copy_spec(self.debug_paths)
+ self.add_cmd_output([
+ "hbacmd listhbas",
+ "hbacmd ServerAttributes"
+ ])
+
+ # collect Hbaattributes and Portattributes of WWN
+ listhbas = self.collect_cmd_output("hbacmd listhbas")
+ if listhbas['status'] == 0:
+ for line in listhbas['output'].splitlines():
+ if 'Port WWN' in line:
+ dev = line.split()[3]
+ self.add_cmd_output([
+ "hbacmd HbaAttributes %s" % dev,
+ "hbacmd PortAttributes %s" % dev,
+ "hbacmd GetXcvrData %s" % dev
+ ])
# vim: set et ts=4 sw=4 :