Show Table of Contents
3.2. コマンドラインを使用したサブスクリプションのアタッチと削除
3.2.1. サブスクリプションのアタッチ
サブスクリプションをシステムにアタッチするには、
--pool オプションを使用して、個別の製品またはサブスクリプションを指定する必要があります。
[root@server1 ~]# subscription-manager attach --pool=XYZ01234567
attach コマンドのオプション一覧は表3「attach オプション」に記載されています。
購入した製品のサブスクリプションプール ID を指定する必要があります。このプール ID は製品サブスクリプション情報に表示され、
list コマンドを実行すると確認できます。
[root@server1 ~]# subscription-manager list --available
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
ProductName: RHEL for Physical Servers
ProductId: MKT-rhel-server
PoolId: ff8080812bc382e3012bc3845ca000cb
Quantity: 10
Expires: 2011-09-20
もしくは、
--auto オプション (register コマンドの --auto-attach オプションに類似) を使用して、システムに、サブスクリプションサービスが特定した最適なサブスクリプションをアタッチすることもできます。
[root@server1 ~]# subscription-manager attach --auto
表3 attach オプション
| オプション | 説明 | 必須 |
|---|---|---|
| --pool=pool-id | システムにアタッチするサブスクリプション ID を指定します。 | --auto の使用時以外は必須 |
| --auto | システムを 1 つ以上の最適なサブスクリプションに自動的にアタッチします。 | オプション |
| --quantity=number | 複数カウントのサブスクリプションをシステムにアタッチします。これは、カウント制限を定義するサブスクリプションを対象に使用されます (例: 2 ソケットサーバー用のサブスクリプションを 2 つ使用して、1 台の 4 ソケットマシンに適用)。 | オプション |
| --servicelevel=None|Standard|Premium | マシン上でサブスクリプションに使用するサービスレベルを設定します。これが使われるのは、--auto オプションと一緒の時のみです。 | オプション |

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.