Tools for Extended Guest
Statistics
As of the vSphere 6.0 release, VMware Tools
have expanded support for guest operating system statistics. Rather than
offering a fixed set of statistics after calling
VMGuestLib_UpdateInfo() , a larger
and extensible set of statistics are available by calling
VMGuestLib_StatGet() , or by using
the CLI.
Guest OS and Statistics Fetch The fetch-statistics facility returns semi-structured data in a variety of formats for use within a the guest OS. Four encodings are supported:Guest Statistics Interfaces You have a choice of three interfaces to fetch the new statistics: the guest SDK library, CLI, or raw RPC. Fetching a List of Statistics To fetch a list of statistics, make a query with no statistics name supplied (in other words, no argument, NULL , or "" ). The returned buffer contains a list of available metric categories. The list can be emitted in any of four supported formats. The text format is recommended for user interaction; machine-parsable formats xml , json , and yaml are recommended for program interaction.Metadata Fields When appearing in machine-parsable formats, numeric statistics have these self-describing metadata fields: Metrics Examples 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).