diff options
author | Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> | 2020-08-31 11:54:52 +0530 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-09-17 12:34:19 -0400 |
commit | 48ac730fbf4b168604079b18675867c5ed6dc1ae (patch) | |
tree | 15452d39c753a35d439aa63e6a5a7551869d7453 | |
parent | b3fd83f0cc92b89e7adf8d66c446f3cf5ab1388b (diff) | |
download | sos-48ac730fbf4b168604079b18675867c5ed6dc1ae.tar.gz |
[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 <mamatha4@linux.vnet.ibm.com>
Reported-by: Borislav Stoymirski <borislav.stoymirski@bg.ibm.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/arcconf.py | 28 |
1 files changed, 28 insertions, 0 deletions
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 |