Listing Hypervisors and VMs in Red Hat Satellite

One of my current pet peeves in Satellite is getting a list of Hypervisors and their associated VMs. This is specially helpful for trouleshooting virt-who or performing general Satellite clean up tasks.

With the snippet below we can get a list of all hypervisors configured in Satellite:

Additionally, virt-who created entities are usually named virt-who-UUID-1 or virt-who-HypervisorHostname-1. In order to easily identify them in the Satellite Web UI, the following filter can be used as a search pattern:

name ~ "virt-who-%-%-%"

Happy hacking!