Blame SOURCES/sos-bz1880372-power-logs.patch

bffc8a
From b8da3e3ed94075fa5ccf74a61ce64812b904d0c5 Mon Sep 17 00:00:00 2001
bffc8a
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Date: Tue, 25 Aug 2020 14:16:52 +0530
bffc8a
Subject: [PATCH] [powerpc]Add support to collect hardware component logs
bffc8a
bffc8a
This patch updates powerpc plugin to collect Hardware and
bffc8a
firmware information.
bffc8a
bffc8a
In this patch we are reading Hardware and firmware version
bffc8a
details through lsvpd, lscfg and lsmcode commands
bffc8a
bffc8a
Related: #2213
bffc8a
bffc8a
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Reported-by: Borislav Stoymirski <borislav.stoymirski@bg.ibm.com>
bffc8a
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
bffc8a
---
bffc8a
 sos/report/plugins/powerpc.py | 5 ++++-
bffc8a
 1 file changed, 4 insertions(+), 1 deletion(-)
bffc8a
bffc8a
diff --git a/sos/report/plugins/powerpc.py b/sos/report/plugins/powerpc.py
bffc8a
index 6cd8dd14..9f38bd7d 100644
bffc8a
--- a/sos/report/plugins/powerpc.py
bffc8a
+++ b/sos/report/plugins/powerpc.py
bffc8a
@@ -50,7 +50,10 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
bffc8a
                 "ppc64_cpu --run-mode",
bffc8a
                 "ppc64_cpu --frequency",
bffc8a
                 "ppc64_cpu --dscr",
bffc8a
-                "diag_encl -v"
bffc8a
+                "diag_encl -v",
bffc8a
+                "lsvpd -D",
bffc8a
+                "lsmcode -A",
bffc8a
+                "lscfg -v"
bffc8a
             ])
bffc8a
 
bffc8a
         if ispSeries:
bffc8a
-- 
bffc8a
2.26.2
bffc8a
bffc8a
From 3d25bbfdadf6c5f33dba7522536f744da1940794 Mon Sep 17 00:00:00 2001
bffc8a
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Date: Tue, 25 Aug 2020 14:21:21 +0530
bffc8a
Subject: [PATCH] [iprconfig]Add support to collect RAID adapter logs
bffc8a
bffc8a
This patch updates iprconfig plugin to collect IBM Power
bffc8a
RAID adapter device driver information.
bffc8a
bffc8a
Related: #2213
bffc8a
bffc8a
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Reported-by: Borislav Stoymirski <borislav.stoymirski@bg.ibm.com>
bffc8a
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
bffc8a
---
bffc8a
 sos/report/plugins/iprconfig.py | 1 +
bffc8a
 1 file changed, 1 insertion(+)
bffc8a
bffc8a
diff --git a/sos/report/plugins/iprconfig.py b/sos/report/plugins/iprconfig.py
bffc8a
index 08503a78..f7511a6c 100644
bffc8a
--- a/sos/report/plugins/iprconfig.py
bffc8a
+++ b/sos/report/plugins/iprconfig.py
bffc8a
@@ -32,6 +32,7 @@ class IprConfig(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
bffc8a
             "iprconfig -c show-af-disks",
bffc8a
             "iprconfig -c show-all-af-disks",
bffc8a
             "iprconfig -c show-slots",
bffc8a
+            "iprconfig -c dump"
bffc8a
         ])
bffc8a
 
bffc8a
         show_ioas = self.collect_cmd_output("iprconfig -c show-ioas")
bffc8a
-- 
bffc8a
2.26.2
bffc8a
bffc8a
From effdb3b84ab80fa68d41af1438bfae465c571127 Mon Sep 17 00:00:00 2001
bffc8a
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Date: Tue, 25 Aug 2020 14:30:23 +0530
bffc8a
Subject: [PATCH] [kernel]Add support to collect network debugging logs
bffc8a
bffc8a
This patch is to collect hybrid network debugging messages
bffc8a
bffc8a
Related: #2213
bffc8a
bffc8a
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Reported-by: Luciano Chavez <lnx1138@linux.vnet.ibm.com>
bffc8a
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
bffc8a
---
bffc8a
 sos/report/plugins/kernel.py | 1 +
bffc8a
 1 file changed, 1 insertion(+)
bffc8a
bffc8a
diff --git a/sos/report/plugins/kernel.py b/sos/report/plugins/kernel.py
bffc8a
index febe2ad0..27e0e4d0 100644
bffc8a
--- a/sos/report/plugins/kernel.py
bffc8a
+++ b/sos/report/plugins/kernel.py
bffc8a
@@ -106,6 +106,7 @@ class Kernel(Plugin, IndependentPlugin):
bffc8a
             "/proc/misc",
bffc8a
             "/var/log/dmesg",
bffc8a
             "/sys/fs/pstore",
bffc8a
+            "/var/log/hcnmgr",
bffc8a
             clocksource_path + "available_clocksource",
bffc8a
             clocksource_path + "current_clocksource"
bffc8a
         ])
bffc8a
-- 
bffc8a
2.26.2
bffc8a
bffc8a
From b3fd83f0cc92b89e7adf8d66c446f3cf5ab1388b Mon Sep 17 00:00:00 2001
bffc8a
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Date: Mon, 31 Aug 2020 10:56:15 +0530
bffc8a
Subject: [PATCH] [mvcli]Add support to collect mvCLI PCI adapter infomation
bffc8a
bffc8a
This patch is to add new plugin mvcli to collect
bffc8a
SATA drives connected to system backplane adapter information.
bffc8a
bffc8a
infor -o vd ---->  If the virtual disk was successfully
bffc8a
                   created, show a new RAID virtual disk
bffc8a
info -o pd  -----> To show all physical disks and IDs:
bffc8a
info -o hba -----> To show all host bus adapters (HBAs):
bffc8a
smart -p 0  -----> To check for errors on a disk:
bffc8a
bffc8a
Related: #2213
bffc8a
bffc8a
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Reported-by: Borislav Stoymirski <borislav.stoymirski@bg.ibm.com>
bffc8a
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
bffc8a
---
bffc8a
 sos/report/plugins/mvcli.py | 35 +++++++++++++++++++++++++++++++++++
bffc8a
 1 file changed, 35 insertions(+)
bffc8a
 create mode 100644 sos/report/plugins/mvcli.py
bffc8a
bffc8a
diff --git a/sos/report/plugins/mvcli.py b/sos/report/plugins/mvcli.py
bffc8a
new file mode 100644
bffc8a
index 00000000..ce7bf77b
bffc8a
--- /dev/null
bffc8a
+++ b/sos/report/plugins/mvcli.py
bffc8a
@@ -0,0 +1,35 @@
bffc8a
+# This file is part of the sos project: https://github.com/sosreport/sos
bffc8a
+#
bffc8a
+# This copyrighted material is made available to anyone wishing to use,
bffc8a
+# modify, copy, or redistribute it subject to the terms and conditions of
bffc8a
+# version 2 of the GNU General Public License.
bffc8a
+#
bffc8a
+# See the LICENSE file in the source distribution for further information.
bffc8a
+
bffc8a
+
bffc8a
+# This sosreport plugin is meant for sas adapters.
bffc8a
+# This plugin logs inforamtion on each adapter it finds.
bffc8a
+
bffc8a
+from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
bffc8a
+
bffc8a
+
bffc8a
+class mvCLI(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
bffc8a
+
bffc8a
+    short_desc = 'mvCLI Integrated RAID adapter information'
bffc8a
+
bffc8a
+    plugin_name = "mvcli"
bffc8a
+    commands = ("/opt/marvell/bin/mvcli",)
bffc8a
+
bffc8a
+    def setup(self):
bffc8a
+
bffc8a
+        # get list of adapters
bffc8a
+        subcmds = [
bffc8a
+            'info -o vd',
bffc8a
+            'info -o pd',
bffc8a
+            'info -o hba',
bffc8a
+            'smart -p 0',
bffc8a
+        ]
bffc8a
+
bffc8a
+        self.add_cmd_output(["/opt/marvell/bin/mvcli %s" % s for s in subcmds])
bffc8a
+
bffc8a
+# vim: et ts=4 sw=4
bffc8a
-- 
bffc8a
2.26.2
bffc8a
bffc8a
From 48ac730fbf4b168604079b18675867c5ed6dc1ae Mon Sep 17 00:00:00 2001
bffc8a
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Date: Mon, 31 Aug 2020 11:54:52 +0530
bffc8a
Subject: [PATCH] [arcconf]Add support to collect arcconf adapter infomation
bffc8a
bffc8a
This patch is to add new arcconf plugin to collect
bffc8a
SATA drives connected to system backplane adapter information.
bffc8a
bffc8a
arcconf getconfig 1 ----> To list the logical drives and
bffc8a
                          device configurations
bffc8a
bffc8a
Closes: #2213
bffc8a
bffc8a
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
bffc8a
Reported-by: Borislav Stoymirski <borislav.stoymirski@bg.ibm.com>
bffc8a
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
bffc8a
---
bffc8a
 sos/report/plugins/arcconf.py | 28 ++++++++++++++++++++++++++++
bffc8a
 1 file changed, 28 insertions(+)
bffc8a
 create mode 100644 sos/report/plugins/arcconf.py
bffc8a
bffc8a
diff --git a/sos/report/plugins/arcconf.py b/sos/report/plugins/arcconf.py
bffc8a
new file mode 100644
bffc8a
index 00000000..64d6bb1e
bffc8a
--- /dev/null
bffc8a
+++ b/sos/report/plugins/arcconf.py
bffc8a
@@ -0,0 +1,28 @@
bffc8a
+# This file is part of the sos project: https://github.com/sosreport/sos
bffc8a
+#
bffc8a
+# This copyrighted material is made available to anyone wishing to use,
bffc8a
+# modify, copy, or redistribute it subject to the terms and conditions of
bffc8a
+# version 2 of the GNU General Public License.
bffc8a
+#
bffc8a
+# See the LICENSE file in the source distribution for further information.
bffc8a
+
bffc8a
+
bffc8a
+# This sosreport plugin is meant for sas adapters.
bffc8a
+# This plugin logs inforamtion on each adapter it finds.
bffc8a
+
bffc8a
+from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
bffc8a
+
bffc8a
+
bffc8a
+class arcconf(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
bffc8a
+
bffc8a
+    short_desc = 'arcconf Integrated RAID adapter information'
bffc8a
+
bffc8a
+    plugin_name = "arcconf"
bffc8a
+    commands = ("arcconf",)
bffc8a
+
bffc8a
+    def setup(self):
bffc8a
+
bffc8a
+        # get list of adapters
bffc8a
+        self.add_cmd_output("arcconf getconfig 1")
bffc8a
+
bffc8a
+# vim: et ts=4 sw=4
bffc8a
-- 
bffc8a
2.26.2
bffc8a