By Simon Coter-Oracle on May 20, 2016
More than one time it could be required to know which VMs are on a specific repository; while it is an easy evaluation for all VMs with their configuration file, it could be much more time expensive to identify VMs that partially resides on a repository.
Even if it's suggested to have the entire VM on one unique repository (for convenience, not for technical limits), one VM can reside on more repositories and in this case it could need much more time to evaluate which VMs are, even partially, on a specific repository.
So, target of the script available here is to supply all the VMs that, completely or partially, reside on a specific repository.
The script is able to interact with Oracle VM 3.2, 3.3 and 3.4 releases and, itself, evaluates the correct release and commands needed.
The script loops on each component available on the repository and verify the ownership; for each line with "." you'll know that one component has been verified:
Here an example of the output of the script:
Feedback and comments are, obviously, appreciated.