The examples below use the default “text” format for readability. For actual programming, you will probably use one of the machine-parsable formats (XML, JSON, or YAML).
What to read next
Fetch Available Statistics The statistics command with no parameters fetches a list of available statistics:
Get Session Information The statistics command with parameters fetches specific statistics:
Host Hardware In the next example, only the first two values are provided by default. A virtual machine with ExtraConfig tools.guestlib.enableHostInfo = TRUE (a non-default setting) supplies the remaining values.
CPU and Memory Statistics For implementation reasons, a virtual machine tracks CPU and memory resources slightly differently. CPU resources, including NUMA, indicate virtualization overhead, shown with vm. prefix. Memory resources are broken out by guest memory, shown with guest. prefix, and by overhead memory, with ovhd. prefix. Future implementations may add additional metrics.
Storage Statistics The following example shows some I/O statistics:
Network Statistics Reservation and limit are supported on DVS (Distributed Virtual Switch) or “opaque” (NSX) switch types only; they are not supported on the default VSS switch type. Between reservation and limit , bandwidth is allocated on a share-based system, which is not meaningful to expose to a guest OS.