Redhat System Registration
Overview
To be able to install software or apply patches with a redhat server you need to perform a system Registration.
Process
CmdLine
[root] subscription-manager register --username <username> --password <password> --auto-attach
Example [root] subscription-manager register --username scott --password tiger --auto-attach Registering to: subscription.rhsm.redhat.com:443/subscription The system has been registered with ID: 7b7e9cd5-38ac-4445-a70f-1dd4b233ac8c The registered system name is: lnx01.mycompany.local Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed
GUI
0. You have created a Redhat.com account.
1. Log into the GUI as the root user.
2. Applications 🠊 RH Subscription Manager 🠊 [Register]
3. Login: <Redhat.com Username>
Password: ******
Systemname: <UseDefault>
[Register]
Confirm Subscriptions (Phyiscal 1): [Attach]
It will connect to Redhat then show Subscribed as Status.
Standard Unregister\Register Session
subscription-manager unregister subscription-manager clean subscription-manager register --username scott --password tiger --auto-attach --force
If preferred: subscription-manager unregister --username=scott
Complete Clean Refresh of Subscription
# subscription-manager remove --all # subscription-manager unregister # subscription-manager clean # subscription-manager register --username=scotttiger # subscription-manager attach --auto
Redhat URL that shows subscription info for all systems.
Troubleshooting
If the process hangs during subscription-manager register or any other part, try killing the subscription-manager as shown below then retrying your command:
# pgrep rhsmcertd
# kill -9 pid (replace 'pid' with the actual process ID)
# service rhsmcertd restart
subscription-manager register --username scott --password tiger --auto-attach --force
Related Info
How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager Link : https://access.redhat.com/solutions/253273
- yum clean all
- yum repolist