I have followed the KB and LucD fix for the PowerCLI. After these i Can get Stats on smaller clusters of say 34- host but not the larger one over 5 or 6 host. I have reached out to Vmware Support and they pointed me back to this thread. so what is the difference when running the following code on cluster or number of objects that would return the error.

Checking I see config.vpxd.stats.MaxQueryMetric with upper case and only see the one in the Advanced Settings

PowerCLI C:\> Get-AdvancedSetting -Entity vcenter | fl

Uid : /VIServer=domain\ephillips3@vcenter:443/AdvancedS

etting=VIServerSetting-config.vpxd.stats.MaxQueryMetrics/

Value : -1

Description :

Type : VIServer

Entity : vcenter

Id : VIServerSetting-config.vpxd.stats.MaxQueryMetrics

Name : config.vpxd.stats.MaxQueryMetrics

Client : VMware.VimAutomation.ViCore.Impl.V1.VimClient

The KB indicates a lowercase m for config.vpxd.stats.maxQueryMetrics but when i run with lower case this sets the upper case object .

PowerCLI C:\> Get-AdvancedSetting -Entity vcenter -Name config.vpxd.s

tats.maxQueryMetrics | Set-AdvancedSetting -Value -1

Perform operation?

Modifying advanced setting 'config.vpxd.stats.MaxQueryMetrics'.

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help

(default is "Y"):y

Name Value Type Description

---- ----- ---- -----------

config.vpxd.stats... -1 VIServer

and this does not create e new key with a lowercase value. I created the key via the web Client for config.vpxd.stats.maxQueryMetrics lower case and this resolved the issue. The command further up in the thread indicates the uppercase and setting via powercli does not appear to set the proper Key.