Command to display hosted Virtual Machines
To combat scope-creep of having VMs unmanaged on a number of KVM Hypervisors, I am attempting to figure out how to leverage Satellite's ability to see which VMs are currently being hosted.
At this point I have a good idea of where my hypervisors are in my environment, but.. I'd like it to be a bit more dynamic.
Why: If someone gets paged to look at vmhost100.company.com - currently I have no way of knowing if it's RHEV, VMware, or KVM at this point. A quick glance at Satellite will at least tell me if it is VMware vs RHEV vs KVM (which is cool).. but.. if the VM is a KVM host, I have no way of knowing which hypervisor it belongs to.
I have added the necessary packages so that my KVM hosts will report back to Satellite
yum -y install rhn-virtualization-host
Now I am looking for the API (or better yet, spacecmd) that will replicate the functionality found in the WebUI when you click on "Virtualization".
As always, thanks in advance for responses ;-)