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