aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-02-10 19:24:39 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-02-10 19:24:39 +0000
commit8eed8e33d1de2cd56a26fc7cc8a3ee25e8921319 (patch)
tree4bc9bd63df291c81c53859dccac53432374eaf72
parentcb9805d129827178df5b32fc681f629d4f40ac6e (diff)
downloadsos-8eed8e33d1de2cd56a26fc7cc8a3ee25e8921319.tar.gz
[infiniband] add opensm and infiniband-diags support
Collect opensm and rdma configuration and logs and output from the infiniband-diags commands. Fixes #492. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/infiniband.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/sos/plugins/infiniband.py b/sos/plugins/infiniband.py
index b0437d7b..687b8d65 100644
--- a/sos/plugins/infiniband.py
+++ b/sos/plugins/infiniband.py
@@ -23,20 +23,27 @@ class Infiniband(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
plugin_name = 'infiniband'
profiles = ('hardware',)
- packages = ('libibverbs-utils',)
+ packages = ('libibverbs-utils', 'opensm', 'rdma', 'infiniband-diags')
def setup(self):
self.add_copy_spec([
"/etc/ofed/openib.conf",
- "/etc/ofed/opensm.conf"
+ "/etc/ofed/opensm.conf",
+ "/etc/rdma"
])
+ self.add_copy_spec_limit("/var/log/opensm*",
+ sizelimit=self.get_option("log_size"))
+
self.add_cmd_output([
"ibv_devices",
"ibv_devinfo",
"ibstat",
"ibstatus",
- "ibhosts"
+ "ibhosts",
+ "iblinkinfo",
+ "sminfo",
+ "perfquery"
])
return