My user is using the below Get-Stat commands on vCenter 5.1 to collect the performance data for the VM ‘VM0000’ daily.
Get-Stat -entity VM0000 -stat cpu.usage.average -Start <00:00:00 yesterday> -finish<23:59:59 yesterday>
Get-Stat -entity VM0000 -stat mem.usage.average -Start <00:00:00 yesterday> -finish<23:59:59 yesterday>
Get-Stat -entity VM0000 -stat disk.usage.average -Start<00:00:00 yesterday> -finish <23:59:59 yesterday>
The above commands are executed every day at 0:20 am to collect the data for the previous day.
The sampling interval is 5 minutes until the VM was powered off for about 20 hours for system maintenance.
After the VM was powered on again, the sampling interval was changed from 5 minutes to 30 minutes on the
day the VM was powered on.
However, the next day after the VM was powered on, the sampling interval was back to 5 minutes again.
Any ideas or explanation on this behavior?
I suspect it has to with the following:
See my PowerCLI & vSphere statistics – Part 1 – The basics post, where I (try to) explain this mechanism as well.