Monday, December 10, 2012

How to REGISTER the Linux server to Redhat?

How to REGISTER the Linux server to Redhat?

If we want to install any linux package using "yum" we need to register our server with Redhat. 
Using the below command, we can add our Linux server to the Redhat site.

Requirements:

We should have the valid customer account with the Redhat. 

Steps:

#rhnreg_ks --username=<user_name> --password=<your_password>
#rhnreg_ks --username=<user_name> --password=<your_password> --force

Example:
#rhnreg_ks --username=test --password=123456 --force
#rhnreg_ks --username=test --password=123456 --force

In the above example, the username is "test" and the password is "123456"

Validation:

Open the Redhat customer portal, on the subscription menu you can find the options of registered systems, click that and you can see the newly added Linux server on the list.

You can find the detailed information of the registered servers info in the "/etc/sysconfig/rhn/systemid" file on the server.

Rollback:
You can find the "delete system" option on the the Redhat customer portal, Just select and delete it.