How to filter VMware clusters with virt-who?
Environment
- Red Hat Satellite 6
- Red Hat Enterprise Linux
- virt-who-0.12-10+
- VMware ESX
Issue
- How to
filter VMware clustersinstead of hosts/hypervisors invirt-who? - How to make sure that only the required clusters are reporting to satellite 6 using virt-who?
- How to
excludesomeESX clustersfrom getting reported to Satellite 6 when using virt-who?
Resolution
- Edit the configuration file and add the paramters:
# vi /etc/virt-who.d/config.conf
[config]
type=<hypervisor_type>
server=<vcenter/esx host>
username=<vcenter/esx_username>
owner=<owner>
env=Library
filter_host_parents="<domain-xx>","<domain-yy>" OR
exclude_host_parents="<domain-zz>","<domain-xx>"
NOTE: Use either filter_host_parents or exclude_host_parents.
filter_host_parents => Clusters to be reported.
exclude_host_parents => Clusters not to be reported.
Supported Hypervisor Environment:
- ESX
PowerCLI command to find the Cluster Names in Vmware:
> Get-Cluster
Name HAEnabled HAFailover DrsEnabled DrsAutomationLevel
Level
---- --------- ---------- ---------- ------------------
Cluster-ESXA-00X False 1 True FullyAutomated
Cluster-ESXB-00X True 1 True FullyAutomated
PowerCLI command to find the Cluster ID in Vmware:
> Get-Cluster "ClusterName" | Select ID
-Replace the ClusterName with the actual ClusterName and execute the query:
For example:-
> Get-Cluster "Cluster-ESXA-00X" | Select ID
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
