File: iprutils.py

package info (click to toggle)
iprutils 2.4.19-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,304 kB
  • sloc: ansic: 27,001; sh: 326; makefile: 88; python: 10
file content (21 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
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"
		])