Red Hat Subscription Management (RHSM) は、サブスクリプションのステータスと管理ツールを提供し、Red Hat のシステム管理ツールと統合する、顧客主導のエンドツーエンドのソリューションです。
subscription-manager コマンドの実行中に以下のエラーが発生した場合:
subscription-manager: command not found
ディストリビューションの選択に応じて、subscription-manager パッケージをインストールできます。
分布 | コマンド |
---|---|
CentOS | yum install subscription-manager |
Fedora | dnf インストール サブスクリプション マネージャー |
subscription-manager コマンドの例
1. Red Hat サブスクリプションを登録してアクティブ化します。
# subscription-manager register --username your_username --password your_password
2. システムの登録を解除するには、登録解除スイッチを使用します:
# subscription-manager unregister
3.利用可能なすべてのサブスクリプションのリストを取得するには、list スイッチを使用します:
# subscription-manager list -available
4. サブスクリプションを有効にするには、サブスクリプション プール ID を使用します:
# subscription-manager subscribe --pool=Pool ID number
5. 消費したサブスクリプションのステータスを取得します:
# subscription-manager list –consumed
6.有効なサブスクリプションを確認するには、以下のコマンドを使用してください。
# subscription-manager list
7. アクティブなサブスクリプションをすべて削除するには、–all 引数を使用します:
# subscription-manager remove --all
8. 特定のプールを削除するには:
# subscription-manager unsubscribe --serial=Serial number
9. 利用可能なサービス レベルを一覧表示するには:
# subscription-manager service-level --list # subscription-manager service-level --set=self-support
10. Yum リポジトリを有効にする:
# subscription-manager repos --list