Show Table of Contents
第3章 サブスクリプション使用
3.1. 利用可能/使用済みのサブスクリプションの表示
管理者が、サブスクリプションを管理するには、システムに現在割り当てられているサブスクリプションと、システムに利用可能なサブスクリプションの両方を知る必要があります。カスタマーポータルからは、サブスクリプションの使用 ページを使用して管理できます。
コマンドラインからサブスクリプションを管理するには、以下を行います。
表3.1 subscription-manager list のオプション
| オプション | 説明 |
|---|---|
| --installed (またはオプションなし) | システムにインストールされている製品の一覧を表示します。list にオプションを付けずに実行すると、--installed 引数を使用した場合と同じとなります。 |
| --consumed | システムに割り当てられているサブスクリプションの一覧を表示します。 |
| --available [--all] | --available だけを使用すると、システムと互換性のあるアクティブなサブスクリプションの一覧を表示します。--available --allを使用すると、システムと互換性がないサブスクリプションを含むオプションも表示されます。 |
| sect-Red_Hat_Subscription_Management-Using_Red_Hat_Subscription_Management-Registering_and_Attaching_Subscriptions_Section_ --ondate=YYYY-MM-DD | 指定した日にアクティブで利用できるサブスクリプションを表示します。このオプションは、--available オプションと一緒に使用します。このオプションを追加しないと、コマンドは現在の日付を使用します。 |
| --installed | システムにインストールされている製品 (およびサブスクリプションの有無) と、システムに割り当てられた製品のサブスクリプション (および製品がインストール済みかどうか) の一覧が表示されます。 |
list コマンドに --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
list コマンドに --available オプションを使用すると、システムと互換性がある利用可能なすべてのサブスクリプションが表示されます。アカウントが所有する全サブスクリプション (システムと互換性があるものと、他のプラットフォーム向けのもの) を追加するには、--available オプションに --all オプションを追加します。--ondate オプションを使用すると、アクティベートした日と有効期限日に基づき、指定した日にアクティブなサブスクリプションのみが表示されます。
[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 [snip]
--installed オプションは、システムに実際にインストールされている製品 (およびサブスクリプションステータス) と、割り当てたサブスクリプションに基づいてシステムにインストール可能な製品 (およびこの製品はインストール済みかどうか) を相互に関連付けます。
[root@server1 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ ProductName: Red Hat Enterprise Linux Status: Not Subscribed Expires: Subscription: ContractNumber: AccountNumber: ProductName: Load Balancer Status: Subscribed Expires: 2012-02-20 Subscription: 54129829316535230 ContractNumber: 39 AccountNumber: 12331131231

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.