Hi folks,
to remediate an issue with the vCLS in several cluster of our vSphere 7 environment I need to retrieve the vCLS health information per cluster. In the UI you find it below "Monitor / vSphere Cluster Service / Health".
I want to use the information to deal later with the Retreat Mode, managed in the Advanced Settings of the vCenter appliance.
The second part has been evaluated already here: Disabling vCLS with PowerCLI..? - VMware Technology Network VMTN
But for the first, I would need a small hint, which property in cluster object is the right one.
Regards,
Nico
Try with
Get-Cluster |
Select Name,
@{N='vcsHealthStatus';E={$_.ExtensionData.summaryEx.vcsHealthStatus}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks for the rocket-fast response, however it doesn't show the current (buggy) information.
Potentially, there is no way to retrieve this information
What does it show?
I have a cluster with the same "No history available..." and there the health shows
Name vcsHealthStatus
---- ---------------
cluster nonhealthy
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thats interesting, the one from the picture, I shared is saying this:
Name vcsHealthStatus
---- ---------------
xxxvrthstcluster01.eu.tiauto.com healthy
There was the moment, I felt uncertainity I can use that information.
Afaik, that history page contains the latest vCLS events (if vCLS is active).
I'll have to investigate further to check which specific events these might be
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thats perhaps the grey zone.
It is confirmed, the vCLS is active, when we look from the angle of the "vSphere ESX Agent Manager", via the "Extensions" at the related. But as initially said, I am working around a cosmetical bug (confirmed by the VMware Support), where I have to enable/disable via the Retreat Mode in any affected cluster.
As we have 120 clusters, I was wonderring if I can ease my life, in detecting and remediating the issue programmatically.