Last active
August 29, 2015 14:14
-
-
Save orimanabu/437b9099af221baabf64 to your computer and use it in GitHub Desktop.
subscription-manager tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@repository ~]# subscription-manager | |
Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help] | |
Primary Modules: | |
attach Attach a specified subscription to the registered system | |
list List subscription and product information for this system | |
refresh Pull the latest subscription data from the server | |
register Register this system to the Customer Portal or another subscription management service | |
release Configure which operating system release to use | |
remove Remove all or specific subscriptions from this system | |
status Show status information for this system's subscriptions and products | |
unregister Unregister this system from the Customer Portal or another subscription management service | |
Other Modules: | |
auto-attach Set if subscriptions are attached on a schedule (default of daily) | |
clean Remove all local system and subscription data without affecting the server | |
config List, set, or remove the configuration parameters in use by this system | |
environments Display the environments available for a user | |
facts View or update the detected system information | |
identity Display the identity certificate for this system or request a new one | |
import Import certificates which were provided outside of the tool | |
orgs Display the organizations against which a user can register a system | |
plugins View and configure subscription-manager plugins | |
redeem Attempt to redeem a subscription for a preconfigured system | |
repo-override Manage custom content repository settings | |
repos List the repositories which this system is entitled to use | |
service-level Manage service levels for this system | |
subscribe Deprecated, see attach | |
unsubscribe Deprecated, see remove | |
version Print version information | |
[root@repository ~]# subscription-manager list --help | |
Usage: subscription-manager list [OPTIONS] | |
List subscription and product information for this system | |
Options: | |
-h, --help show this help message and exit | |
--proxy=PROXY_URL proxy URL in the form of proxy_hostname:proxy_port | |
--proxyuser=PROXY_USER | |
user for HTTP proxy with basic authentication | |
--proxypassword=PROXY_PASSWORD | |
password for HTTP proxy with basic authentication | |
--installed list shows those products which are installed | |
(default) | |
--available show those subscriptions which are available | |
--all used with --available to ensure all subscriptions are | |
returned | |
--ondate=ON_DATE date to search on, defaults to today's date, only used | |
with --available (example: 2015-01-23) | |
--consumed show the subscriptions being consumed by this system | |
--servicelevel=SERVICE_LEVEL | |
shows only subscriptions matching the specified | |
service level; only used with --available and | |
--consumed | |
--no-overlap shows pools which provide products that are not | |
already covered; only used with --available | |
--match-installed shows only subscriptions matching products that are | |
currently installed; only used with --available | |
[root@repository ~]# subscription-manager repos --help | |
Usage: subscription-manager repos [OPTIONS] | |
List the repositories which this system is entitled to use | |
Options: | |
-h, --help show this help message and exit | |
--proxy=PROXY_URL proxy URL in the form of proxy_hostname:proxy_port | |
--proxyuser=PROXY_USER | |
user for HTTP proxy with basic authentication | |
--proxypassword=PROXY_PASSWORD | |
password for HTTP proxy with basic authentication | |
--list list known repos for this system | |
--enable=REPOID repo to enable (can be specified more than once). | |
Wildcards (* and ?) are supported. | |
--disable=REPOID repo to disable (can be specified more than once). | |
Wildcards (* and ?) are supported. | |
[root@repository ~]# | |
[root@repository ~]# rct | |
Usage: rct MODULE-NAME [MODULE-OPTIONS] [--help] | |
Primary Modules: | |
cat-cert Print certificate information | |
cat-manifest Print manifest information | |
dump-manifest Dump the contents of a manifest | |
stat-cert Print certificate statistics and sizes | |
Other Modules: | |
[root@repository ~]# | |
[root@repository ~]# ls /etc/pki | |
CA ca-trust consumer entitlement java nssdb product rpm-gpg rsyslog tls | |
[root@repository ~]# find /etc/pki -name '*.pem' | |
/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem | |
/etc/pki/ca-trust/extracted/pem/email-ca-bundle.pem | |
/etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem | |
/etc/pki/tls/cert.pem | |
/etc/pki/consumer/key.pem | |
/etc/pki/consumer/cert.pem | |
/etc/pki/entitlement/xxxxxxxxxxxxxxxxxx-key.pem | |
/etc/pki/entitlement/xxxxxxxxxxxxxxxxxx.pem | |
/etc/pki/product/yy.pem | |
/etc/pki/product/zzz.pem | |
[root@repository ~]# | |
[root@repository ~]# rct cat-cert /etc/pki/consumer/cert.pem | |
+-------------------------------------------+ | |
Identity Certificate | |
+-------------------------------------------+ | |
Certificate: | |
Path: /etc/pki/consumer/cert.pem | |
Version: 1.0 | |
Serial: ******************* | |
Start Date: 2014-08-21 05:14:11+00:00 | |
End Date: 2015-08-21 05:14:11+00:00 | |
Alt Name: URI:CN=repository.example.local | |
Subject: | |
CN: d8f32346-f2ee-4b93-88f5-7bf7e94f05d8 | |
Issuer: | |
C: US | |
CN: Red Hat Candlepin Authority | |
O: Red Hat, Inc. | |
OU: Red Hat Network | |
ST: North Carolina | |
emailAddress: [email protected] | |
[root@repository ~]# | |
[root@repository ~]# rct cat-cert /etc/pki/product/yy.pem | |
+-------------------------------------------+ | |
Product Certificate | |
+-------------------------------------------+ | |
Certificate: | |
Path: /etc/pki/product/yy.pem | |
Version: 1.0 | |
Serial: ******************** | |
Start Date: 2014-01-28 18:37:08+00:00 | |
End Date: 2034-01-23 18:37:08+00:00 | |
Subject: | |
CN: Red Hat Product ID [eb3b72ca-acb1-4092-9e67-f2915f6444f4] | |
Issuer: | |
C: US | |
CN: Red Hat Entitlement Product Authority | |
O: Red Hat, Inc. | |
OU: Red Hat Network | |
ST: North Carolina | |
emailAddress: [email protected] | |
Product: | |
ID: yy | |
Name: Red Hat Enterprise Linux Server | |
Version: 7.0 | |
Arch: x86_64 | |
Tags: rhel-7,rhel-7-server | |
Brand Type: | |
Brand Name: | |
[root@repository ~]# | |
[root@repository ~]# rct cat-cert /etc/pki/entitlement/xxxxxxxxxxxxxxxxxx.pem | |
+-------------------------------------------+ | |
Entitlement Certificate | |
+-------------------------------------------+ | |
Certificate: | |
Path: /etc/pki/entitlement/xxxxxxxxxxxxxxxxxx.pem | |
Version: 3.2 | |
Serial: ****************** | |
Start Date: 2013-08-14 04:00:00+00:00 | |
End Date: 2022-01-01 04:59:59+00:00 | |
Pool ID: 8a85f9874011071c01407da00b997cb2 | |
Pool ID: ******************************** | |
Subject: | |
CN: ******************************** | |
Issuer: | |
C: US | |
CN: Red Hat Candlepin Authority | |
O: Red Hat, Inc. | |
OU: Red Hat Network | |
ST: North Carolina | |
emailAddress: [email protected] | |
Product: | |
ID: 132 | |
Name: Red Hat Enterprise Linux High Performance Networking (for RHEL Server) | |
Version: | |
Arch: x86_64 | |
Tags: | |
Brand Type: | |
(snip) | |
[root@repository ~]# | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment