Ticker

6/recent/ticker-posts

Learn Linux: Steps of Register Red Hat Enterprise Linux 7.9 to Red Hat Network Satellite!

 In this tutorial, you will learn how to connect RHEL 7 with RHN Satellite. Previously we learned about what is Linux operating system? In general, the Red Hat Network Satellite is a system management solution where you can deploy, configure and maintain the systems over physical, virtual, and cloud environments.

Image by <a href="https://pixabay.com/users/mastertux-470906/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1900329">MasterTux</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1900329">Pixabay</a>

# Aim to connect RHEL to RHN Satellite:-

When you subscribe your systems to the Red Hat Network (RHN) Satellite, it provides you a mechanism to handle the Red Hat software inventory and allows you to install additional software or update the existing installed programs to the new version using the yum package manager. 

# what is a yum package manager?

Yellow package manager (YUM) is the package management tool for installing, updating, removing, and managing software packages in Red Hat Enterprise Linux (RHEL). YUM can manage packages from installed repos in your system or from .rpm packages. The YUM main configuration files are available at /etc/yum .conf and all the repos are available at /etc/yum.repos.d.

Command:-     #  yum –option command

# what is redhat subscription management?

Red Hat Subscription management is an end-to-end solution that provides a tool for subscription status and management and integrates with Red Hat’s system management tools.

Note: All subscription-manager commands are run as a root.

# Register Red Hat Enterprise Linux 7 system via Command Line Interface (CLI)

     1)    Run the command # subscription-manager register. When you run the command it prompted you to enter your username and password.

     # Username and Password are the same as your login credentials for Red Hat Customer Portal (https://access.redhat.com).

     

Register Red Hat Enterprise Linux 7 system via Command Line Interface (CLI)
     
        
In the above image, you can see when you run the # subscription-manager register .it’s asking for the username and password. After entering the username and password its returns some ID. The ID will be different for every system.

2) After step first, run the # subscription-manager refresh command to refresh the information on your machine. Run this command any time you add or change the attached subscription from the Customer Portal.

3) Run the command # subscription-manager list to list the available subscription to which your system is registered.

subscription-manager

In the above image, you can see currently we have not applied any subscription to the RHEL 7 system. The status shows not subscribed.

4) Run the # subscription-manager list --available  --all command to list all the available the subscription on Red Hat Network (RHN) Satellite.

subscription-manager list

In the above image, you get the Pool ID which is used to attach a subscription from a specific pool.

5) Attach a subscription to a specific pool with the command # subscription-manager attach –pool=”pool_id”

RHEL 7

Note: pool_id you get in step #4 which you can see in the image with red color marked.

 6) Now, verify the status with the command # subscription-manager list

   
RHEL 7
   
      In the image, you can see the Status show Subscribed means the Red Hat Enterprise Linux (RHEL) 7 systems are connected with the Red Hat Network (RHN) Satellite.
      
     7) The # subscription-manager identity command handles the UUID of the system, which identifies the system to the subscription service after registration.
      
     
subscription-manager identity

The above command returns the system identity, name, org name, and id.

     8) Run # yum clean all command to the cleanup of all the repos cache available in the system.
      
yum clean all

     
     9) Run # yum repolist command to list all the available repos which are part of your subscription.
      
yum repolist

In this, you can get the repo id, repo name.

   
10)    To enable the repository to run command as follows:

                 # subscription-manager repos –enable <repository>

2)            To disable the repository run the command as follows:

                 # subscription-manager repos –disable <repository>

     Note: <repository> means name of the repository you want to enable or disable with the above commands.


     Lastly, the above steps to connect Red Hat Enterprise Linux (RHEL) 7 to Red Hat Network (RHN) Satellite were helpful. Please let us know if we left anything so we can update/modify it as soon as possible.

Post a Comment

0 Comments