54 lines
1.5 KiB
Diff
54 lines
1.5 KiB
Diff
|
From 8eed8e33d1de2cd56a26fc7cc8a3ee25e8921319 Mon Sep 17 00:00:00 2001
|
||
|
From: "Bryn M. Reeves" <bmr@redhat.com>
|
||
|
Date: Tue, 10 Feb 2015 19:24:39 +0000
|
||
|
Subject: [PATCH] [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>
|
||
|
---
|
||
|
sos/plugins/infiniband.py | 13 ++++++++++---
|
||
|
1 file changed, 10 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/sos/plugins/infiniband.py b/sos/plugins/infiniband.py
|
||
|
index b0437d7..687b8d6 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
|
||
|
--
|
||
|
1.8.3.1
|
||
|
|