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

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