Blame SOURCES/sos-bz1637127-powerpc-dlpar-lpm-logs.patch

fce3c4
From 848b110f83697814c72ac93b36e786ff9dafc0fc Mon Sep 17 00:00:00 2001
fce3c4
From: Sourabh Jain <sourabhjain@linux.ibm.com>
fce3c4
Date: Thu, 4 Oct 2018 11:14:09 +0530
fce3c4
Subject: [PATCH] [powerpc] Add support to collect DLPAR and LPM related logs
fce3c4
fce3c4
This patch updates powerpc plugin to collect
fce3c4
Dynamic Resource Manager (drmgr) log files
fce3c4
i.e. /var/log/drmgr and /var/log/drmgr.0.
fce3c4
In addition, it also adds ctsanp command to collect the information
fce3c4
about the Reliable Scalable Cluster Technology (RSCT) components.
fce3c4
fce3c4
Resolves: #1443
fce3c4
fce3c4
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
fce3c4
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
fce3c4
---
fce3c4
 sos/plugins/powerpc.py | 8 ++++++--
fce3c4
 1 file changed, 6 insertions(+), 2 deletions(-)
fce3c4
fce3c4
diff --git a/sos/plugins/powerpc.py b/sos/plugins/powerpc.py
fce3c4
index 94137568..8a859990 100644
fce3c4
--- a/sos/plugins/powerpc.py
fce3c4
+++ b/sos/plugins/powerpc.py
fce3c4
@@ -59,8 +59,11 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
fce3c4
                 "/proc/ppc64/lparcfg",
fce3c4
                 "/proc/ppc64/eeh",
fce3c4
                 "/proc/ppc64/systemcfg",
fce3c4
-                "/var/log/platform"
fce3c4
+                "/var/log/platform",
fce3c4
+                "/var/log/drmgr",
fce3c4
+                "/var/log/drmgr.0"
fce3c4
             ])
fce3c4
+            ctsnap_path = self.get_cmd_output_path(name="ctsnap", make=True)
fce3c4
             self.add_cmd_output([
fce3c4
                 "servicelog --dump",
fce3c4
                 "servicelog_notify --list",
fce3c4
@@ -68,7 +71,8 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
fce3c4
                 "usysident",
fce3c4
                 "serv_config -l",
fce3c4
                 "bootlist -m both -r",
fce3c4
-                "lparstat -i"
fce3c4
+                "lparstat -i",
fce3c4
+                "ctsnap -xrunrpttr -d %s" % (ctsnap_path)
fce3c4
             ])
fce3c4
 
fce3c4
         if isPowerNV:
fce3c4
-- 
fce3c4
2.17.1
fce3c4