ovm_managercontrolユーティリティは、Oracle VM Managerのレベルで動作します。これにより、管理者は、Oracle VM Managerが管理する全体的な環境の構成に適用できる基本的なコマンドを実行できます。
ovm_managercontrolユーティリティには、次のコマンドライン・オプションがあります。
-u Oracle VM Manager管理ユーザーのユーザー名(必須)
-p 管理ユーザー名に対応するパスワード(必須)
-h Oracle VM Managerを実行しているサーバーのホスト名(必須)
-X SSLを使用して、tcps://host
:54322でOracle VM Managerに接続
-k SSLに使用するキーストア・ファイルの名前
-P キーストア・ファイルを開くパスワード
-G GPGチェックの有効化
-K GPGキーのURL
-B YUMサーバー・リポジトリのベースURL
-n CPU互換性グループの名前
-s CPU互換性グループに追加する、またはCPU互換性グループから削除するOracle VM Serverの名前
-T 仮想マシン・コンソールのセッション・タイムアウト(秒)(-c getsessiontimeout/setsessiontimeoutと同時に使用)
-c コンソール・コマンド(必須)
[コマンド: yuminfo、setupyum、addkeystore、keystoreinfo、createcpugroup、removecpugroup、addservertocpugroup、removeserverfromcpugroup、listcpugroups、getsessiontimeout、setsessiontimeout
]
パラメータおよびオプションの一般的な組合せについては、次の項の例を参照してください。
ovm_managercontrolコマンドおよびそれぞれの出力の例は次のとおりです。
SSL接続のキーストア・ファイルを設定して、キーストア設定を確認します。
# ./ovm_managercontrol -u admin -ppassword
-h localhost -c addkeystore -kmykeystore.ks
-Ppassword
Oracle VM Manager Control utility 0.5.2. Connected. Command : addkeystore Adding keystore. Restart of Oracle VM Manager is required for this setting to take effect. (/etc/init.d/ovmm stop ; /etc/init.d/ovmm start) Exit... # ./ovm_managercontrol -u admin -ppassword
-h localhost -c keystoreinfo Oracle VM Manager Control utility 0.5.2. Connected. Command : keystoreinfo Key Store information : Key Path : '/u01/app/oracle/ovm-manager-3/keystore/mykeystore.ks' Exit...
Oracle VM Server更新用のYUMリポジトリを構成します。
# ./ovm_managercontrol -u admin -ppassword
-h localhost -c setupyum \\ -Bhttp://yumserver.domain.com/repo
-G -Khttp://secure.domain.com/key.gpg
この操作は、Oracle VMコマンドライン・インタフェースを使用しても実行できます。
CPU互換性グループを構成し、Oracle VM Serverを追加します。
# ./ovm_managercontrol -u admin -ppassword
-h localhost -c createcpugroup -n MyCPUgroup_Opteron Oracle VM Manager Control utility 0.5.2. Connected. Command : createcpugroup Creating CPU Compatibility Group 'MyCPUgroup_Opteron'. Exit... # ./ovm_managercontrol -u admin -ppassword
-h localhost -c addservertocpugroup -s MyServer1 -n MyCPUgroup_Opteron Oracle VM Manager Control utility 0.5.2. Connected. Command : addservertocpugroup Adding Server to CPU Compatibility group. Exit...
これらの操作は、Oracle VMコマンドライン・インタフェースを使用しても実行できます。
CPU互換性グループ構成(互換性グループおよびそのメンバー・サーバー)を表示します。
# ./ovm_managercontrol -u admin -p password
-h localhost -c listcpugroups
Oracle VM Manager Control utility 0.5.2.
Connected.
Command : listcpugroups
Group : MyCPUgroup_Opteron
Server : MyServer1
Server : MyServer2
Server : MyServer3
Server : MyServer6
Server : MyServer7
Server : MyServer8
Group : MyCPUgroup_Xeon
Server : MyServer4
Server : MyServer5
Exit...
この操作は、Oracle VMコマンドライン・インタフェースを使用しても実行できます。
RASプロキシに対するセッション・タイムアウト値を設定します。この値は、仮想マシンへのコンソール・アクセスを円滑に行うために使用されます。
# ./ovm_managercontrol -u admin -p Welcome1 -h localhost -c setsessiontimeout -T 300 Oracle VM Manager Control utility 0.5.2. Manager version : 3.2.1.516 Connected. Command : setsessiontimeout Set RAS timeout to 300 seconds. Exit...
RASプロキシに対するセッション・タイムアウト値を取得します。この値は、仮想マシンへのコンソール・アクセスを円滑に行うために使用されます。
./ovm_managercontrol -u admin -p Welcome1 -h localhost -c getsessiontimeout Oracle VM Manager Control utility 0.5.2. Manager version : 3.2.1.516 Connected. Command : getsessiontimeout RAS Engine Timeout = 300 Exit...