How can i check my server is registered with redhat Subscription
Hi Community,
how can i check my server is registered with redhat Subscription. I want to know which all files and commands are associated with this check.
we have nearly 122 systems registered .
Regards,
Ben
Responses
You can check this with the subscription-manager command
1. Check the status (is the system registered with a valid subscription)
sudo subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Current
Show attached subscriptions
$ sudo subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Premium (DERIVED SKU)
Provides: Red Hat Enterprise Linux Server
...
System Type: Virtual
Whenever you have a valid RedHat registration, it will create the following file /etc/sysconfig/rhn/systemid. You will have the following tag in this .xml file:
system_id ID-xxxxxxxxxx
Where ID-xxxxxxxxxx, x character will be replaced by a unique numeric value ;-)
sudo subscription-manager list
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 7.5
Arch: x86_64
Status: Subscribed
Status Details:
Starts: mm/dd/yyyy
Ends: mm/dd/yyyy
$ sudo subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Current
$ sudo subscription-manager identity
system identity: x-y-z-a-b
name: <fqdn>
org name: <7 numbers>
org ID: <7 numbers>
In version 7.5 it is little different;
ls /etc/sysconfig/rhn/
allowed-actions clientCaps.d rhnsd up2date
From portal
Overview : https://access.redhat.com/management
Subscribed systems list : https://access.redhat.com/management/systems
Subscriptions : https://access.redhat.com/management/subscriptions
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
