第4章 insights-client の設定
Insights クライアントをインストールした後、システムを Red Hat Insights for Red Hat Enterprise Linux に登録する必要があります。登録すると、Red Hat Insights for Red Hat Enterprise Linux サービスを使用できるようになります。
4.1. Red Hat Insights へのシステムの登録
insight-client
コマンドを使用して、システムを Red Hat Insights に登録できます。
システムを登録するときに、コマンドに --display-name
オプションを追加して、ホストに別の表示名を割り当てることができます。表示名は、Insights UI でシステムを識別します。システムを登録するときに表示名を割り当てないと、Insights はシステムのデフォルトのホスト名を使用します。
前提条件
お使いのシステムで次の手順を完了するようにしてください。
- root レベルの権限でログインする。
- Insights クライアントをインストールする。
手順
CLI で次の
subscription-manager
コマンドを実行します。[root@insights]# subscription-manager register [root@insights]# subscription-manager status
次のように、
insights-client
登録コマンドを実行します。[root@insights]# insights-client --register [root@insights]# insights-client --status
例
次の例は、ホスト名とは異なる表示名でシステムを登録する方法を示しています。
[root@insights01]# insights-client --register --display-name ITC-4
結果の出力:
Successfully registered host insights01-rhel9 as ITC-4 in group None Automatic scheduling for Insights has been enabled. Starting to collect Insights data for ITC-4 Writing RHSM facts to /etc/rhsm/facts/insights-client.facts ... Uploading Insights data. Successfully uploaded report from ITC-4 to account 1234567. View the Red Hat Insights console at https://console.redhat.com/insights/
次の例は、Red Hat Insights にすでに登録されているシステムの表示名を変更する方法を示しています。
[root@insights01]# insights-client --display-name ITC-5
結果の出力:
System display name changed from ITC-4 to ITC-5
insight-client
コマンドオプションの詳細は、関連情報 セクションを参照してください。
結果
Red Hat Insights for Red Hat Enterprise Linux にアクセスできるようになりました。
- 新しく登録したシステムがコンソールの Red Hat Insights インベントリーページに表示されるまでに、最大 15 分かかる場合があります。
- Red Hat Satellite ユーザー: Satellite システムを Insights に登録した後、新規インストールを実行して Satellite システムをアップグレードまたは再構築する場合は、システムを Insights に再登録する必要があります。方法の詳細は、Red Hat Insights へのシステムの再登録 を参照してください。
関連情報
4.1.1. Satellite 登録中のホストテレメトリー有効化エラーの解決
この問題は Red Hat Satellite ユーザーに影響します。Red Hat Insights にホストを登録する Satellite ユーザーの場合、insights-client --register
を実行すると、CLI に次の出力が表示されることがあります。
Telemetry is not enabled for this host
このエラーは、ホスト登録時に host_registration_insights
パラメーターが false に設定されているために発生します。Satellite が Insights クライアントのアップロードを受け入れるには、これを true に設定する必要があります。このエラーメッセージを解決するには、次の手順を実行する必要があります。
-
host_registration_insights
パラメーターを true に変更します -
パラメーターが更新された後、コマンドラインで
Insights-client --register
コマンドを再度実行します。
関連情報
この問題とその解決方法の詳細は、以下を参照してください。