By Simon Coter-Oracle on Jun 29, 2016
==> An updated release of this script is available here <==
The idea of this script came up more than one time in the past and target is to build-up a report of all VMs managed by an Oracle VM Manager on one or more Oracle VM Pools. Following script is compatible with Oracle VM 3.2, 3.3 and 3.4.
The output obtained is one csv file containing all the main informations related to all the VMs; the table will be composed of:
- Virtual Machine UUID (Unique ID)
- Virtual Machine Name
- Memory (amount of RAM allocated to the VM)
- Max Memory (Max amount of RAM allocable to the VM without reboot)
- Processors (Number of vCPUs)
- Max Processors (Max number of vCPUs)
- Processor Capacity (Increase or decrease the percentage to which the virtual CPUs can receive scheduled time)
- Processor Priority (The higher the priority, the more physical CPU cycles are given to the virtual machine)
- High Availability (H/A enabled or not for the VM)
- Operating System (Descriptive field related to the OS installed on the VM)
- VM Type (PVM, HVM or HVM with PV drivers)
- Repository (Oracle VM Repository where vm.cfg file resides)
- *vDisk Space Used (Disk space used by the vm - virtual-disks)
- *vDisk Space Max (Disk space allocable by the vm - virtual-disks)
- *Physical Disk size (Disk space used by the vm - physical-disks)
* = these options are only available on Oracle VM releases 3.3 and 3.4; on Oracle VM 3.2 release these three columns will be valued with "N/A".
The script, the install package and README file can be downloaded here.
Installation process is pretty easy; just execute command "install.sh" and follow the interactive shell:
Last message of the installation package should be something similar to:
"OVMCLI Session successfully connected with key-based authentication!!!"
like in the following picture:
The script "ExportVmDetails", available for default under path "/usr/local/bin" won't need any option and will supply an output similar to the following picture:
Obviously the same approach can be taken to generate further csv reports with all the informations related to an Oracle VM Pool.
As usually, feedback and comments are very welcome.
If you need further informations, please visit: