By Simon Coter-Oracle on Apr 26, 2016
Continuing on the path of the first "ovm-disk" command, here you can find one new tool available for your Linux guest-vms; target of this utility, named "ovm-info", is to supply main information of the running guest on:
- VM information, like Hostname, VM-Name, VM-Type and repository that house it.
- CPU and Memory information (Max and used)
- Disk information like domU device and the corresponding dom0 device (virtual or physical)
- Network information like domU device and OVM Network configuration (id, dom0 net device and vlan-tag)
- Other informations like H/A enabled or not, Hugepages enabled or not and actions on different operations (reboot, crash etc)
So with the same approach of the other script, specific for detailed reports on vdisks, we can install and execute this command on our running Linux guest and obtain this information by executing this command on the guest itself:
"ovm-info" command/script, once executed, query the Oracle VM Manager and obtains detailed info related to the device specified.
There are some requirements to have it correctly working and these are:
- "expect" installed on the Linux VM
- VM able to reach port 10000 of Oracle VM Manager host
- Compatible with Oracle VM 3.3 and 3.4
The package containing all-the-stuff can be downloaded here ; into this tarball-gzipped file you'll find:
- README_FIRST.txt (please, read it, it won't take more than 2 minutes)
- FirstConn.exp (expect script that executes first connection to the Oracle VM Manager CLI port)
- SetupSsh.exp (expect script that setup the self-authentication between the VM and Oracle VM Manager CLI)
- install.sh (bash script to execute to correctly setup the self-authentication)
- ovm-info (script that will be customized and copied by the install.sh process)
NB: Once the setup is completed a copy of the command "ovm-info" will be saved under "/usr/local/bin" and you can remove the install package and its directory.
Here you can find an example of the installation output (click on the image to get the entire log).
# ./install.sh <ovmm_host> <ovmm_oracle_linux_user_password> <ovmm_admin_manager_password>
"OVMCLI Session successfully connected with key-based authentication!!!"
Now you can remove the package and the installation folder and verify the "ovm-info" command path:
Example output on "General Information" option (-g):
Example output on "CPU and Memory" option (-c):
Example output on "Virtual Disk" option (-d):
Example output on "Network Information" option (-n):
Example output on "Other Information" like H/A, HugePages and actions, option (-o):
Last option "Show all VM information" (-a) query for all information and option above sequentially.
Feedback and question are obviously appreciated.