Hi All,
I Need to get the health status of VSAN objects with Powercli. I can use ESXCLI but the output is in the form of some hash table, wondering if there is any other way, i would be happy with the
.vSAN object health green / yellow /red ?
$args = $esxcli.vsan.health.cluster.get.CreateArgs()
$args.test = “vSAN object health”
$checkvsan = $esxcli.vsan.health.cluster.get.Invoke($args)
Isn't that information also available through the VSAN cmdlets that were introduced end last year in the VMware.VimAutomation.Storage module?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Isn't that information also available through the VSAN cmdlets that were introduced end last year in the VMware.VimAutomation.Storage module?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I'll have to check that, It didn't cross my mind.
Ok I think this is it Test-VsanClusterHealth -Cluster $cluster -TestResultFilter
But I can't find a TestResultFilter for Data > Object Health ?
IS that for Disk objects?
Does this work?
Get-VsanDisk | Select Name,@{N='State';E={_.ExtensionData.OperationalState}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I'm not quite sure if that does it, I need the Cluster VSAN health check status for objects?
It looks as if you have to go through Get-VsanView and use VsanVcClusterHealthSystem-vsan-cluster-health-system
William, who else, has an example script up.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference