ovm_servercontrol
ユーティリティは、物理Oracle VM Server上で動作します。これにより、管理者は、特定のOracle VM Server上で基本的なサーバー・コマンドを実行したり、そのステータスを問い合せたり、重用な情報を取得できます。
ovm_servercontrol
ユーティリティには、次のコマンドライン・オプションがあります。
-u Oracle VM Manager管理ユーザーのユーザー名(必須)
-p 管理ユーザー名に対応するパスワード(必須)
-h Oracle VM Managerを実行しているサーバーのホスト名(必須)
-X SSLを使用して、tcps://host
:54322でOracle VM Managerに接続
-s Oracle VM Server名
-I Oracle VM Server ID
-A イベントの承認(-c eventsと同時に使用)
Oracle VM ServerのイベントおよびOracle VM Serverがホストする仮想マシンを承認するには、-A all
を使用します。
-c コンソール・コマンド(必須)
[コマンド: start、stop、restart、kill、discover、mainton、maintoff、status、info、events、lock、upgrade、list
]
mainton
およびmaintoff
コマンドは、Oracle VM Serverメンテナンス・モードを有効化または無効化します。
discover
コマンドは、まだOracle VM Managerで検出されていないOracle VM Server上の検出操作を実行します。
upgrade
コマンドは、特定のOracle VM Server上でyumアップグレードを開始します。
list
コマンドは、Oracle VM Serverのname引数を必要としません。システムに登録されているすべてのOracle VM Serverを表示します。
ovm_servercontrol
コマンドおよびそれぞれの出力の例は次のとおりです。
登録されているすべてのOracle VM Serversを表示します。
# ./ovm_servercontrol -u admin -p password
-h localhost -c list
Oracle VM Server Control utility 0.5.0.
Connected.
Command : list
Server : 'OVS_01'
ID : '00:e0:81:4d:40:16:00:e0:81:4d:40:17:ff:ff:ff:ff'
pool : 'MyServerPool1'
status : 'Running'
Server : 'OVS_02'
ID : '00:e0:81:4d:5e:82:00:e0:81:4d:5e:83:ff:ff:ff:ff'
pool : 'unassigned'
status : 'Running'
Server : 'OVS_03'
ID : '00:e0:81:4d:5e:16:00:e0:81:4d:5e:17:ff:ff:ff:ff'
pool : 'MyServerPool1'
status : 'Running'
Server : 'OVS_04'
ID : '00:e0:81:4d:40:f5:00:e0:81:4d:40:be:00:e0:81:4d'
pool : 'unassigned'
status : 'Running'
Exit...
Oracle VM Serverのステータスをチェックします。
# ./ovm_servercontrol -u admin -p password
-h localhost -s OVS_03 -c status
Oracle VM Server Control utility 0.5.0.
Connected.
Command : status
Server : 'OVS_03' status : 'Running' serverpool : 'MyServerPool1'.
Exit...
Oracle VM Serverの詳細情報を表示します。
# ./ovm_servercontrol -u admin -p password
-h localhost -s OVS_01 -c info
Oracle VM Server Control utility 0.5.0.
Connected.
Command : info
Server : OVS_01
Status : Running
Management IP: 10.172.76.90
Hostname : OVS_01
ID : 00:e0:81:4d:40:16:00:e0:81:4d:40:17:ff:ff:ff:ff
Pool : MyServerPool1
CPU threads : 4
CPU Usage : 1.877896
Total Memory : 32767
Usable Memory: 31261
Maintenance : false
Master Server: true
Up to date : true
Virtual Machines on this server :
Name : 'MyVM01'
Status : 'Stopped'
Name : 'MyVM02'
Status : 'Running'
Exit...
Oracle VM Serverを再起動します。
# ./ovm_servercontrol -u admin -p password
-h localhost -s OVS_02 -c restart
Oracle VM Server Control utility 0.5.0.
Connected.
Command : restart
restartserver 'OVS_02' completed.
Exit...