aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2014-03-11 11:07:51 +0000
committerBryn M. Reeves <bmr@redhat.com>2014-03-11 11:07:51 +0000
commit6fb9d5df14b3b0e21db458fd5fcd10691bb9fd0e (patch)
tree46003d5c50acb48e5219456d578380f88a780246
parent3dac227dde7af1168fa3c668836d7dde711981bd (diff)
downloadsos-6fb9d5df14b3b0e21db458fd5fcd10691bb9fd0e.tar.gz
powerpc: Move VPD related tool under common code
VPD related tools (lsvpd, lscfg, lsmcode) is supported on both pSeries and PowerNV platform. Hence moving these commands under common code. Also added support to grab vpd database (/var/lib/lsvpd). Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> --- sos/plugins/powerpc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
-rw-r--r--sos/plugins/powerpc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sos/plugins/powerpc.py b/sos/plugins/powerpc.py
index dfaacb9b..8fd6b4f8 100644
--- a/sos/plugins/powerpc.py
+++ b/sos/plugins/powerpc.py
@@ -52,14 +52,15 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
self.add_cmd_output("ppc64_cpu --run-mode")
self.add_cmd_output("ppc64_cpu --frequency")
self.add_cmd_output("ppc64_cpu --dscr")
+ self.add_cmd_output("lscfg -vp")
+ self.add_cmd_output("lsmcode -A")
+ self.add_cmd_output("lsvpd --debug")
+ self.add_copy_spec("/var/lib/lsvpd/")
if ispSeries:
self.add_copy_spec("/proc/ppc64/lparcfg")
self.add_copy_spec("/proc/ppc64/eeh")
self.add_copy_spec("/proc/ppc64/systemcfg")
- self.add_cmd_output("lscfg -vp")
- self.add_cmd_output("lsmcode -A")
- self.add_cmd_output("lsvpd --debug")
self.add_cmd_output("lsvio -des")
self.add_cmd_output("servicelog --dump")
self.add_cmd_output("servicelog_notify --list")