Adding sosreport support through iprutils.py plugin. To accomodate such
addition, changes to iprconfig.spec, configure.ac and Makefile.am were
implemented. Python macro AM_PATH_PYTHON was added in order to have the
plugin copied python site-packages/sos/plugins directory, and python-devel
was added as a new dependency, in order to properly translate
%{python_sitelib} to '/usr/lib/python2.X/site-packages'.
This new feature will collect IPR adapter information along with
system details and log messages from the user's environment.
Signed-off-by: Daniel Kreling <kreling@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
21 lines
554 B
Python
21 lines
554 B
Python
"""
|
|
Gather information about ipr adapters in a system and report it using plugins
|
|
supplied for application-specific information [improve this text]
|
|
|
|
"""
|
|
from sos.plugins import Plugin, IndependentPlugin
|
|
|
|
class IprPlugin(Plugin, IndependentPlugin):
|
|
"""This plugin collects information about IPR adapters and other system information."""
|
|
|
|
plugin_name = 'ipr-sos'
|
|
profiles = ('hardware',)
|
|
|
|
def setup(self):
|
|
self.add_copy_spec(["/etc/ipr",
|
|
"/var/log/iprdump*",
|
|
"/sys/module/ipr"
|
|
])
|
|
self.add_cmd_output([
|
|
"/usr/sbin/iprconfig -c dump"
|
|
])
|