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

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