The vsan.vm_perf_stats command
While you can examine VM performance information via the vSphere Web Client, you can also get a quick at-a-glance view of VM performance using this command.
Getting ready
You should be logged in to RVC as a vCenter Administrator.
How to do it…
As we are asking for information about a VM, the command will be executed against the VM level in RVC.
Type
vsan.vm_perf_stats /<vCenter>/<Datacenter>/computers/<Cluster>/resourcePool/vms/<VM>
and strike the Enter key:Here, we see the outcome of a recent sample of VM performance data. Not all possible counters are shown here, only a high-level view of I/O per second, Throughput and Latency.
How it works…
This command queries information about the VM and finds the objects associated with it, and then collects performance counters. The operation then suspends for 20 seconds and the performance information is fetched again. This raw data is then averaged and displayed to you.
This command is not particularly...