How to register a system to Red Hat Subscription Management using an activation key?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Subscription Management
  • Red Hat Customer Portal

Issue

  • How to register a system to Red Hat Subscription Management (RHSM) using an activation key?
  • How to register a system to RHSM without using Red Hat login and password?

Resolution

  • Create an activation key Creating Red Hat Customer Portal Activation Keys

  • Register the system using the activation key with:

    # subscription-manager register --org=ORG ID --activationkey=Key Name
    

    Note: When using an activation key, you will need your organization ID which is displayed at the top of the This content is not included.Activation Keys page. This page is not visible to non-admins, so Organization Administrators who distribute activation keys to non-admins will need to provide this ID separately with the key.

  • Register the system using multiple activation keys if different subscriptions are associated with different keys, below command should be used to combine multiple activation keys:-

     # subscription-manager register --org=ORG ID  --activationkey="AK1,AK2,AK3"
    

Diagnostic Steps

  • Check the organization list from command line with :

    # subscription-manager orgs --username=[USERNAME] --password=[PASSWORD]
    
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.