Este conteúdo não está disponível no idioma selecionado.

Chapter 7. Using Red Hat Subscription Manager


7.1. Understanding Red Hat Subscription Management

Red Hat Subscription Manager tracks the Red Hat products that your organization has purchased and the systems that the products are installed on. Subscription Manager establishes the relationship between the product subscriptions that are available to the system and the elements of infrastrcuture of your business where those subscriptions are allocated.

Important

Red Hat subscription services have moved from Red Hat Customer Portal to Red Hat Hybrid Cloud Console, however, your technical environment might require you to perform some tasks in the Customer Portal. For example, a user with a Red Hat Satellite Server on a disconnected network will continue to use the Customer Portal to create and manage subscription manifests. Also, a connected user without a Satellite Server will use the Customer Portal to enable simple content access for their organization.

Note

If simple content access mode is enabled for your Red Hat organization, then you do not need to attach subscriptions or manage entitlements. The simple content access mode is enabled at the organization-level for new accounts by default. For information about enabling simple content access mode for an existing organization, see Enabling simple content access with Red Hat Subscription Management

While Red Hat products are available through a GNU Public License, Red Hat supports its products through a subscription-based license. Support includes:

  • Downloadable content and updates
  • Access to the knowledge base
  • Support for your product

Red Hat Subscription Management provides administrators with the following information:

  • Which products are available to your organization
  • Which products are installed on your systems
  • The status of your subscriptions

Red Hat Subscription Management allows administrators to identify the relationship between their systems and the subscriptions used by those systems from two different perspectives:

  • All active subscriptions for an account and which systems are consuming them
  • All systems profiled within the inventory and which subscriptions they are consuming

Additional resources

7.2. Understanding your workflow for subscribing with Red Hat products

Before you can register your system to Red Hat, you need an active subscription. Subscriptions can be purchased through the Red Hat Store or by contacting Sales directly. With a registered system and an active subscription, you can do the following tasks:

  • View or manage any systems for your account in the Systems inventory on the Red Hat Hybrid Cloud Console
  • View or manage any subscriptions for your account in the Subscription Inventory on the Red Hat Hybrid Cloud Console
  • Download software packages and updates from the content delivery network for as long as the subscription is active

Each element in the subscription service must be uniquely identified. This allows true relationships to be established between the system, the products, and the subscriptions. The subscription service generates and installs these certificates on the local system:

  • An identity certificate for the system. This certificate is created when the system is registered. The system uses it to authenticate to the subscription service and periodically check for updates.
  • A product certificate for each Red Hat product installed on the system. This certificate is installed on the system along with the product. It identifies the product, but it is not unique to the system.
  • A subscription certificate for each subscription associated with the system. This certificate includes information about the subscription from the inventory.

Subscription management delivers better information and offers administrators better control over their infrastructures.

7.3. Tools and applications available for Red Hat Subscription Management

Important

Red Hat Subscription services have moved from the Customer Portal to Red Hat Hybrid Cloud Console, however, your technical environment might require you to perform some tasks in the Customer Portal. For example, a user with a Red Hat Satellite Server on a disconnected network will continue to use the Customer Portal to create and manage subscription manifests.

All Red Hat Enterprise Linux subscriptions automatically include the following tools for managing the subscription configuration:

  • Red Hat Subscription Manager client tools to manage local systems on the command line
  • Subscription services on the Red Hat Hybrid Cloud Console to manage systems and subscriptions for your account
  • Red Hat Satellite as an on-premise solution for systems that may not regularly check in

The diversity of tools allows administrators to create a workflow that fits both the business and infrastructure demands of their organization.

7.3.1. Red Hat Subscription Manager

Red Hat Subscription Manager tracks and displays what subscriptions are available to the local system and what subscriptions have been consumed by the local system. It works as a conduit back to the subscription service to synchronize changes, such as available product quantities or subscription expiration dates.

The Subscription Manager includes the following components:

  • A UI-based client to manage the local machine
  • A CLI client, which can be used with other applications or in automation scripts

These tools allow authorized users to perform tasks directly related to managing subscriptions, such as registering a system to Red Hat and updating the certificates required for authentication. Some minor operations, such as updating system facts, are available to help show and track available subscriptions.

Note

You must have root privileges to run the Subscription Manager CLI tool because of the nature of the changes to the system. However, Subscription Manager connects to the subscription service as a user account for the subscription service.

The Subscription Manager is part of the firstboot process for configuring content and updates, but you can register the system at any time through the Subscription Manager UI or CLI. New subscriptions, new products, and updates can be viewed and applied to a system through the Subscription Manager tools.

Additional resources

7.3.1.1. Launching Red Hat Subscription Manager

You can run Red Hat Subscription Manager from the Red Hat Enterprise Linux UI. The following instructions show you how to run Subscription Manager from the RHEL UI based on the release version of your system:

  • In RHEL 9, click Activities > Show Applications.
  • In RHEL 8, click Activities > Show All Programs.
  • In RHEL 7, click System Tools > Administration.

7.4. Viewing subscriptions with Red Hat Subscription Manager

To manage subscriptions, administrators need to know the following information:

  • What subscriptions are available to the system
  • What subscriptions are being used by the system

You can view your subscriptions and their details in the following ways:

  • From the command line interface (CLI) using the subscription-manager command
  • From the Subscription Inventory page on the Hybrid Cloud Console.

The following table shows options that you can use to manage your subscriptions with the subscription-manager command.

Table 7.1. subscription-manager list Options

Command

Description

--installed (or nothing)

Lists all of the installed products on the system. If no option is given with 'list', it is the same as using the '--installed' argument.

--consumed

Lists all of the subscriptions associated with the system.

--available[-all]

Using '--available' alone lists all of the compatible, active subscriptions for the system. Using '--available --all' lists all options, even ones not compatible with the system.

--ondate=YYYY-MM-DD

Shows subscriptions which are active and available on the specified date. This is only used with the '--available' option. If this is not used, then the command uses the current date.

--installed

Lists all of the products that are installed on the system (and whether they have a subscription) and it lists all of the product subscriptions which are associated with the system (and whether those products are installed).

Example 'list' showing subscriptions consumed

[root@server1 ~]# subscription-manager list --consumed

+-------------------------------------------+
		Consumed Product Subscriptions
+-------------------------------------------+


ProductName:        	Red Hat Enterprise Linux Server
ContractNumber:     	1458961
SerialNumber:       	171286550006020205
Active:             	True
Begins:             	2009-01-01
Expires:            	2011-12-31

Example 'list' showing all available subscriptions

[root@server1 ~]# subscription-manager list --available --all

+-------------------------------------------+
		Available Subscriptions
+-------------------------------------------+


ProductName:            RHEL for Physical Servers
ProductId:              MKT-rhel-server
PoolId:                 ff8080812bc382e3012bc3845ca000cb
Quantity:               10
Expires:                2011-09-20


ProductName:            RHEL Workstation
ProductId:              MKT-rhel-workstation-mkt
PoolId:                 5e09a31f95885cc4
Quantity:               10
Expires:                2011-09-20

Additional resources

7.5. Using system purpose with Red Hat Subscription Manager

You use system purpose to record the intended use of a Red Hat Enterprise Linux (RHEL) system. Setting system purpose allows you to specify system attributes, such as the role, service level agreement, and usage. The following values are available for each system purpose attribute by default.

Role

  • Red Hat Enterprise Linux Server
  • Red Hat Enterprise Linux Workstation
  • Red Hat Enterprise Linux Compute Node

Service Level Agreement

  • Premium
  • Standard
  • Self-Support

Usage

  • Production
  • Development/Test
  • Disaster Recovery

Configuring system purpose offers the following benefits:

  • In-depth system-level information for system administrators and business operations
  • Reduced overhead when determining why a system was procured and its intended purpose

You can set system purpose data in any of the following ways:

  • During activation key creation
  • During image creation
  • During installation using the Connect to Red Hat screen to register your system
  • During installation using the syspurpose Kickstart command
  • After installation using the subscription-manager CLI tool

Additional resources

7.5.1. Listing available values for system purpose attributes

As the root user, you can enter the subscription-manager syspurpose command and the role, usage, service-level, or addons subcommand with the --list option to list available values for all system purpose attributes. Listing system purpose values for an unregistered system requires you to enter additional information on the command line.

The following examples show how to list the available system purposes values for the role attribute for registered and unregistered systems.

When the system is registered, enter the following command:

[root@localhost ~]# subscription-manager syspurpose role --list

When the system is unregistered, enter the following command with the --username, --password, --organization, and --token authentication options, as required:

[root@localhost ~]# subscription-manager syspurpose role --list --username=<username> --password=<password> --organization=<organization_ID> --token=<token>

where: The --username option specifies the name of a user with organization administrator authority in your Red Hat account. The --password option specifies the associated password. The --organization option specifies the organization ID number. The --token option specifies the token of the virt-who service account.

Note

Specifying the organization ID is only required if you have multiple organizations and need to specify a particular organization.

Note

Specifying the token is only required if you have configured virt-who to connect to OpenShift Virtualization.

When you enter the command on a registered system or on an unregistered system with authentication options, the expected output is the list of available values for the role attribute:

+-------------------------------------------+
               Available role
+-------------------------------------------+
 - Red Hat Enterprise Linux Workstation
 - Red Hat Enterprise Linux Server
 - Red Hat Enterprise Linux Compute Node

System purpose addons are specific to your organization and do not appear in the list of available values. If you try to list available system purpose addons with the --list option, then subscription-manager displays a warning message. For example:

# subscription-manager syspurpose addons --list
There are no available values for the system purpose "addons" from the available subscriptions in this organization.

7.5.2. Setting custom values for system purpose attributes

If the value you want to set is not included in the list of valid values for the account, you can enter a custom system purpose value with the --set option. To set a custom value, you must enter the command on a registered system or enter the command with authentication options on an unregistered system.

The following examples show how to set a custom value of “foo” for the system purpose role attribute on registered and unregistered systems.

When the system is registered, enter the following command:

[root@localhost ~]# subscription-manager syspurpose role --set=”foo”

When the system is unregistered, enter the following command with the --username, --password, --org, and --token authentication options, as required:

[root@localhost ~]# subscription-manager syspurpose role --set=”foo” --username=<username> --password=<password> --organization=<organization_ID> --token=<token>

where: The --username option specifies the name of a user with organization administrator authority in your Red Hat account. The --password option specifies the associated password. The --org option specifies the organization ID number. The --token option specifies the token of the virt-who service account.

Note

Specifying the organization ID is only required if you have multiple organizations and need to specify a particular organization.

Note

Specifying the token is only required if you have configured virt-who to connect to OpenShift Virtualization.

When you set a custom value on a registered system or on an unregistered system with authentication options, the expected output displays a warning message because the custom value is considered invalid. However, the output also displays a confirmation message because subscription-manager sets the custom value despite the warning.

Warning: Provided value "foo" is not included in the list of valid values
 - Red Hat Enterprise Linux Workstation
 - Red Hat Enterprise Linux Server
 - Red Hat Enterprise Linux Compute Node
role set to "foo".
Important

Subscription Manager only outputs the warning message if the system is registered or if you enter authentication credentials on an unregistered system. If your system is unregistered and you do not enter authentication options, Subscription Manager sets the custom value without displaying the warning message.

7.6. Enabling simple content access with Red Hat Subscription Management

If you use a Red Hat Satellite Server, then you can enable simple content access in the following ways:

  • On a subscription manifest on the Red Hat Hybrid Cloud Console Manifests page.
  • On a Satellite organization using the Satellite graphical user interface.
Note

The simple content access setting on the Satellite organization supersedes the settings on the manifest.

If you do not use a Satellite Server, then you can enable simple content access through the Red Hat Customer Portal.

After simple content access is enabled, you can complete additional post-enablement steps related to activation key, host group, and host configuration through the Hybrid Cloud Console.

7.6.1. Enabling simple content access without a Red Hat Satellite Server

When you enable simple content access, you change the content access mode. You stop using the traditional mode, where you must attach a subscription to a system as a prerequisite of gaining access to content. You start using a new mode, where you can consume content regardless of the presence of an attached subscription.

Prerequisites

  • The Organization Administrator role for the organization

Procedure

To enable simple content access for the directly connected systems in Red Hat Subscription Manager without a Satellite Server, complete the following steps:

  1. Log in to the Red Hat Customer Portal.
  2. On the Overview page, set the Simple content access for Red Hat switch to Enabled.

After you complete these steps, simple content access is enabled for all current and newly registered systems. Current systems will download the required simple content access certification information the next time that they check in to the subscription management services.

Additional resources

7.7. Understanding errata

Part of subscription management is tracking updates and new releases of software. Whenever an update is available - from a bug fix to a new release - a notification email can be sent to you. The notifications are only sent for registered systems which have subscriptions for that product associated with them.

7.7.1. Managing errata notification settings

Errata notifications are set as a preference for the user account, not for an individual system. When Red Hat Subscription Management checks for potential errata updates, it checks the entire inventory, not specific systems. An errata notification is sent if any registered system is affected, but the email does not list what systems are actually affected.

Procedure

  1. From the Overview page, click the account name.
  2. Click Account Settings.
  3. Click Errata Notifications.
  4. Select the types of errata you want to receive. Security errata relate to critical security issues. Bug fixes and enhancement notifications relate to incremental updates to the product.
  5. Select the notification frequency.
  6. Click Save.

7.7.2. Troubleshooting errata applicability

If you see applicable errata displayed in Red Hat Subscription Management but have no yum updates available, it can mean one of a couple of settings are not correct.

Procedure

  1. Verify that you have the proper permissions to install all available updates on the system. If you do not have the necessary permissions, contact your organization administrator.
  2. If you are running RHEL 5 or RHEL 6.4 or earlier, please consider upgrading your system so that you can have the most up-to-date errata and system updates.
  3. Force a check in and run yum update again.* If the system has not been checked in recently, you may see a discrepancy between what you see in the Customer Portal and what is actually installed on your system.
# rm -f /var/lib/rhsm/packages/packages.json
# service rhsmcertd stop
# rhsmcertd --now
# yum update
Note

After forcing your system to check in again, please wait up to four hours for the errata data on Red Hat Subscription Management to update to their correct data.

Red Hat logoGithubRedditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja oBlog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

© 2024 Red Hat, Inc.