I've tried the following with the part and path:
But still don't get pass the host when running the compliance job.
1 of 1 people found this helpful
guestinfo.xxx = whatever
I completely forgot about some of the functionality in component templates. I updated the rule to the following:
The logic works at the host level but still not at the VM level. I may need to play around with it a little bit more, but it is a start.
If you have other suggestions, they are welcome!
you may need to do some nested loops - i'm not sure. i don't have a multi-server cluster handy though...
hi @John Martineau
Could you please try using below and let us know if that solves the issue...?
Foreach "VMware vCenter Server.VM Guest Info:/Virtual Machines/*GuestInfo"
"VMware Tools Status" = "Tools not installed"
Courtesy: Maria Cabral
I had to add a new part into the CT, '/Virtual Machines/**/Guestinfo, for the rule you gave me to try. However, the rule still doesn't iterate through the VMs in vCenter.
After some further review the correct Template part is "/Virtual Machines" and part type "VMware vCenter Server.Virtual Machines". The rule syntax will be:
foreach "VMWare vCenter Server.VM Guest Info:/Virtual Machines/**GuestInfo"
"VMWare Tools Status" = "OK"
This will traverse all VM of the vCenter and test the VMWare Tools Status.