Greetings!
One of the things I've found recently - some properties seem to be immune to WaitForUpdates. Say, VirtualMachine->quickstats->cpu/mem. WFU will not receive updates when the value change. HOWEVER, if we do it the \*improper* way and always pass empty string as version, it will update (but then, it will also receive all the other information for all the other property filters - to much!)
Anyone seen this? Seems a bit strange...
Well, the mysterious workings of performance counters stil bugs me and the complete uselessness of creating performance intervals amuses me
Theres some unspecified behaviour in the SDK or is it just mine that behaves a bit weird... There's always workaround around this things, so it not too bad.
With regards to your observation.
It you look at the Reference Guide, it specifically spells out that these properties do not generate updates. http://pubs.vmware.com/vi301/sdk/ReferenceGuide/vim.vm.Summary.QuickStats.html.
With regards to performance counters, then I suggest that you view the Webinar at http://ftpsite.vmware.com/download/WebinarFiles/111506%20SDK%20VI%20API/111506vmware1.htm which has been found useful for many people to understand QueryPerf.
Alternatively, you can use the quickstats properties which are updated on a regular basis. You would get a point in time snapshot and no history. In addition, you may get a scale issue as queryperf should be more efficient when retrieving a large number of VMs.
H
With regards to your observation.
It you look at the Reference Guide, it specifically spells out that these properties do not generate updates. http://pubs.vmware.com/vi301/sdk/ReferenceGuide/vim.vm.Summary.QuickStats.html.
With regards to performance counters, then I suggest that you view the Webinar at http://ftpsite.vmware.com/download/WebinarFiles/111506%20SDK%20VI%20API/111506vmware1.htm which has been found useful for many people to understand QueryPerf.
Alternatively, you can use the quickstats properties which are updated on a regular basis. You would get a point in time snapshot and no history. In addition, you may get a scale issue as queryperf should be more efficient when retrieving a large number of VMs.
H