付録B Red Hat Update Infrastructure コマンドラインインターフェイス
RHUI の管理タスクの大部分はインストールにあります。インストール後は、Red Hat CDN から定期的に更新パッケージを取得し、クライアントでそのパッケージを自動的に利用できるようにします。
Red Hat Update Infrastructure Management Tool (rhui-manager
コマンドで実行する) と呼ばれるコマンドラインインターフェイスは、インストールを容易にします。このツールは、RHUI の各コンポーネント (RHUA、CDS、およびロードバランサー) に必要な設定要素の対話式プロンプトを提供します。このツールは、Red Hat が提供するコンテンツ証明書を取得して、Red Hat CDN に接続するときに使用し、クライアントが RHUI に接続するために使用する内部のクラウド固有の証明書を生成する手段も提供します。Red Hat Update Infrastructure Management Tool を使用すると、クラウドプロバイダーはクライアント RHEL インスタンスにインストールされるクライアント設定バンドルを生成することができます。このバンドルにより、クライアントは RHUI インストールから更新を取得できるようになります。
Red Hat Update Infrastructure Management Tool はインタラクティブシェルを使用して実行するように設計されています。標準のシェルプロンプトからも一部の機能を実行できます。Red Hat Update Infrastructure Management Tool は、主に 5 つのコマンドを使用します。各コマンドのサブコマンドでは、サブコマンドが -h
および --help
以外のオプションを想定している場合は、オプションの一覧が提供されます。
すべてのオプションおよびコマンドを表示します。
[root@rhua ~]# rhui-manager --help Usage: rhui-manager [options] OPTIONS -h/--help show this help message and exit --debug enables debug logging --config absolute path to the configuration file; defaults to /etc/rhui/rhui-tools.conf --server location of the RHUA server (overrides the config file) --username if specified, previously saved authentication credentials are ignored and this username is used to login --password used in conjunction with --username COMMANDS cert : Red Hat content certificate management packages : package manipulation on repositories repo : repository listing and manipulation status : RHUI status and health information client : Red Hat client management
以下のサブセクションでは、関連付けられたコマンドのサブコマンドとオプションを詳しく説明します。
B.1. cert
info: 現在のコンテンツ証明書に関する情報を表示します。
- (このサブコマンドにはオプションがありません。)
upload: 新しいコンテンツ証明書をアップロードします。
- --cert - 新しいコンテンツ証明書への完全パスです (必須)。
- --key - 新しいコンテンツ証明書のキーへの完全パスです。
例
[root@rhua ~]# rhui-manager cert upload --cert /tmp/extra_rhui_files/rhcert.pem Red Hat Entitlements Valid Beta RHEL RHUI Everything 7 Debug Expiration: 05-17-2026 Certificate: rhcert.pem Beta RHEL RHUI Everything 7 OS Expiration: 05-17-2026 Certificate: rhcert.pem