Below are examples of ovm_managercontrol
commands and their respective output.
Set up a keystore file for SSL connectivity and check the keystore settings:
# ./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...
Configure the YUM repository for Oracle VM Server updates:
# ./ovm_managercontrol -u admin -ppassword
-h localhost -c setupyum \\ -Bhttp://yumserver.domain.com/repo
-G -Khttp://secure.domain.com/key.gpg
Configure a CPU compatibility group and add an 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...
Display the CPU compatibility group configuration, that is: the compatibility groups and their member servers:
# ./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...