Hello Experts,
Is there a way to know if ESX/ESXi host is in any cluster or standalone ?
I can pull the hosts information from multiple VC but now i want to know if that particular host is part of cluster or standalone?
It should show standalone if so or else it should give cluster name if it is part of cluster.
Thanks & Regards,
Amol Patil
You can do something like this
Get-VMHost | select Name,@{N='Standalone';E={$_.ParentId -notmatch 'Cluster'}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You can do something like this
Get-VMHost | select Name,@{N='Standalone';E={$_.ParentId -notmatch 'Cluster'}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks a ton for the hint.
I will do the further modification.
PowerCLI problem? = LucD is available