Show Table of Contents
第3章 コマンド
3.1. RHEVM への接続
3.1.1. RHEVM への接続 (connect)
connect コマンドは、Red Hat Virtualization Manager に接続します。.rhevmshellrc ファイルでは Red Hat Virtualization Manager へ接続するための URL、ユーザー名、認証局、パスワードを設定することができます。connect コマンドは、ユーザーが毎回オプションを指定する必要なしに、このファイルのパラメーターを使用して Manager に接続します。
構文
connect [options]
注記
.rhevmshellrc ファイルでユーザー名、パスワード、URL、認証局ファイルを設定した場合は、追加オプションを指定する必要はありません。
表3.1 connect のオプション
| オプション | 説明 | 必須 |
|---|---|---|
--url | Red Hat Virtualization Manager の REST API への URL。形式は https://[server]/api となります。 | はい |
--username | Red Hat Virtualization Manager へアクセスを試行するユーザーのユーザー名およびディレクトリーサービスドメイン。形式は [username]@[domain] となります。 | はい |
--password | Red Hat Virtualization Manager へアクセスを試行するユーザーのパスワード | はい |
--key-file | SSL 経由で接続するための鍵ファイル | いいえ |
--cert-file | SSL 経由で接続するための証明書ファイル | いいえ |
--ca-file | SSL 経由で接続するための認証局ファイル | はい (--insecure の使用時は除く) |
--insecure | CLI から認証なしに SSL 経由で接続することができるようになります。このオプションにより、中間者 (MITM) 攻撃によるサーバーのなりすましが可能となってしまう場合があるため、細心の注意を払って使用してください。 | はい (認証局が提示されていない場合のみ) |
--filter | ユーザーのパーミッションに基づいたフィルタリングを有効にします。 | いいえ |
--port | --url の一部として指定されていない場合の REST API への接続ポート番号 | いいえ |
--timeout | 接続のタイムアウト | いいえ |
例3.1 .rhevmshellrc が設定されていない場合の connect の例
[RHEVM shell (disconnected)]# connect --url "https://rhevm.example.com/api" --username "admin@exampleids.com" --password "p@55w0rd!" --ca-file "/home/user/ca.crt" ========================================== >>> connected to RHEVM manager 4.0.0.0 <<< ========================================== [RHEVM shell (connected)]#
注記
証明書を指定せずに「--insecure」オプションを使用して証明書なしに接続することができますが、中間者攻撃によるサーバーのなりすましが可能になる場合があるため、このオプションの使用は推奨していません。
3.1.2. RHEVM からの接続解除 (disconnect)
disconnect コマンドで Red Hat Virtualization Manager への接続を解除します。
構文
disconnect
例3.2 disconnect の例
[RHEVM shell (connected)]# disconnect ======================================= >>> disconnected from RHEVM manager <<< ======================================= [RHEVM shell (disconnected)]#

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.