diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2018-11-29 13:48:08 -0500 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-19 12:11:14 +0000 |
commit | def34f54bc9cc80a9c661d8dbb7d1198b861ee84 (patch) | |
tree | a6b3fa84491574c570a9c175e196a3a2560a1cb9 | |
parent | bea596f34382f353be3a9a3589e21e571793e15c (diff) | |
download | sos-def34f54bc9cc80a9c661d8dbb7d1198b861ee84.tar.gz |
[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 <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/subscription_manager.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 |