Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

how to get list of affinity rules containing specific host

$
0
0

Given a host in a cluster, I want to be able to find any Host group rules that said host may be a member of. There's a post on the forum with an example but it doesn't work in vcenter 6.7. I know there's a function that takes a vm and returns some info but i'm not interested in vms, only hosts.

 

Does anyone have a way of getting this info? What I'm trying to do create a workflow to remove a host, do some other stuff and then re-add the host to the same cluster but i need to keep track of any rules said host was a member of so I can add it back.

 

This is the info i'm trying to pull:

 

 

Thanks


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>