How can i check my server is registered with redhat Subscription

Latest response

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  
  1. 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

Hi Jonathan,

Thanks for your reply.

subscription manager is starting from RHEL 7 on words noe? all my clients are RHEL 6.6,

Regards, Ben

Hi Ben,

subscription manager is available in RHEL 6.7 onwards,

HI

but my server doesn't have subscription manager

Is is available in the repositories your systems have available?

$ sudo yum info subscription-manager

If it is, can be installed with yum install subscription-manager. How were you registering systems to begin with?

HI

i was registering my servers by using below

rhnreg_ks --profilename=my_rhel_system01 --username=myusername --password=mypw1234

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 ;-)

HI

thanks for explanation. this is what i was looking for.

Regards, Ben

Don't forget you can mark the correct solution by clicking the green star!

HI

i was not aware of this rules, thanks for notifying me.

Regards, Ben

Hi Ben

Hi Jonathan

how to check Red hat subscription date ??

how to check red hat subscribtion??

From cli
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

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.