From def34f54bc9cc80a9c661d8dbb7d1198b861ee84 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Thu, 29 Nov 2018 13:48:08 -0500 Subject: [subscription_manager] Add syspurpose and rct collection Adds syspurpose output collection which is a new tool to assist with subscription manager on RHEL systems. Also adds rct output for default product certificates. Resolves: #1489 Signed-off-by: Jake Hunsaker Signed-off-by: Bryn M. Reeves --- sos/plugins/subscription_manager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sos/plugins/subscription_manager.py b/sos/plugins/subscription_manager.py index 372db0aa..951a2a5c 100644 --- a/sos/plugins/subscription_manager.py +++ b/sos/plugins/subscription_manager.py @@ -7,6 +7,7 @@ # See the LICENSE file in the source distribution for further information. from sos.plugins import Plugin, RedHatPlugin +import glob class SubscriptionManager(Plugin, RedHatPlugin): @@ -29,10 +30,14 @@ class SubscriptionManager(Plugin, RedHatPlugin): self.add_cmd_output([ "subscription-manager list --installed", "subscription-manager list --consumed", - "subscription-manager identity" + "subscription-manager identity", + "syspurpose show" ]) self.add_cmd_output("rhsm-debug system --sos --no-archive " "--no-subscriptions --destination %s" % self.get_cmd_output_path()) + certs = glob.glob('/etc/pki/product-default/*.pem') + self.add_cmd_output(["rct cat-cert %s" % cert for cert in certs]) + # vim: et ts=4 sw=4 -- cgit