Chapter 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 4.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