I know that in policy --> Group management, it's possible to create groups by filtering out VM's by guest OS's. Is it possible to take the step further and limit the results to a certain cluster?
Thanks for all your help!
Great question! This article written by anson.mccook should help with policy questions : How to Create Workload Placement Policies (prior to v5.4)
To my knowledge there are two ways to do this, both of which are manually creating groups:
First: Create a new group, choose "manually select entities to group". Then search for VMs by Guest OS. Then from that list of VMs, manually select the VMs by OS for example Linux in your desired Cluster based on your own list or own knowledge.
Second (most likely easier): Search for VMs by Cluster and then manually from that list select the VMs based on your knowledge or own list of VMs that would be Linux OS (for example).
Depending on the size of your cluster, I would say that the second option is easier. I have seen customers with specific naming conventions for VMs based on the cluster / Guest OS that could allow you to use Regular Expression and create a dynamic group.
I would be interested to better understand your use case Jieun and what you would ultimately plan to do with this group . I'm always learning! or at least trying!
Hope that helps so far.
Great! Thanks for the helpful insight
But I was wondering, is there a way currently for the operations manager to automatically carry out this process? For example, rather than manually selecting the VM's to carry over into the group, would it be possible for VMTurbo to: 1) dynamically add VM's with similar guest OS's into a group, and then 2) filter the group one step further so that only the VM's from a certain cluster (with the same guest OS's) will be dynamically added to this group?
This might not be exactly what you're looking for, but there is a way to try using the REST API. This would not be purely dynamic on the part of Operations Manager, but it could be automatic.
First, you would create a dynamic group for your guest OS.
Then you identify the cluster you're interested in, and find the related group of VMs. Note that OpsMan creates groups of different entity types per cluster. So here you see the VMs by cluster. (You can see this in the INVENTORY view)
Now that you have your two groups, you could then use the REST API to get the members of each group. From those two lists, you parse out the intersection, and that's the list of VMs in cluster FOO with OS BAR. From there, you could use the API to create your OS_per_CLUSTER group as a static group. If you ran such a process nightly, that could keep you up to date...
Retrieving data ...