The Get-Stat cmdlet still seems to have a lot of pecularities.
I did a quick report on the memory statistics for VMHosts that can be obtained via the Get-Stat -Stat mem.... variant of the cmdlet.
See attached html file.
The results were a bit surprising to say the least.
1) Realtime statistics only seem to return averages
2) the sysUsage and reservedCapacity type don't seem to return anything at all
3) The IntervalMins parameter seems to switch the reported interval on other values then those that were mentioned before.
For example: when you specify 780 for IntervalMins you get statistics at 2 hour intervals, when you specify 781 you get statistics at 24 hour intervals
4) where are the 20 second interval statistics coming from. Obviously not the VC. Directly from the VMHost ?
If someone feels intrigued, don't hold back doing a similar exercise for the other statistics that are available.
cpu, rescpu, mem (for the other available entities), net, disk, sys, clusterServices.