You can use the 'guestinfo' variable to query information such as version description, version string, build number, and so on.

The following table list down the 'guestinfo' variables to query information:
Table 1. VMware Tools 'guestinfo' Variables
Command Description
Windows Guest:

vmtoolsd --cmd "info-get guestinfo.vmtools.description"

rpctool.exe "info-get guestinfo.vmtools.description"

Linux Guest:

vmtoolsd --cmd "info-get guestinfo.vmtools.description"

vmware-rpctool "info-get guestinfo.vmtools.description"

Reports the version description.

Windows Guest:

vmtoolsd --cmd "info-get guestinfo.vmtools.versionString"

rpctool.exe "info-get guestinfo.vmtools.versionString"

Linux Guest:

vmtoolsd --cmd "info-get guestinfo.vmtools.versionString"

vmware-rpctool "info-get guestinfo.vmtools.versionString"

Reports the version string.

Windows Guest:

vmtoolsd --cmd "info-get guestinfo.vmtools.versionNumber"

rpctool.exe "info-get guestinfo.vmtools.versionNumber"

Linux Guest:

vmtoolsd --cmd "info-get guestinfo.vmtools.versionNumber"

vmware-rpctool "info-get guestinfo.vmtools.versionNumber"

Reports the version number.

Windows Guest:

vmtoolsd --cmd "info-get guestinfo.vmtools.buildNumber"

rpctool.exe "info-get guestinfo.vmtools.buildNumber"

Linux Guest:

vmtoolsd --cmd "info-get guestinfo.vmtools.buildNumber"

vmware-rpctool "info-get guestinfo.vmtools.buildNumber"

Reports the build number.

Windows Guest:

vmtoolsd --cmd "info-get guestinfo.toolsInstallErrCode"

rpctool.exe "info-get guestinfo.toolsInstallErrCode"

Linux Guest:

vmtoolsd --cmd "info-get guestinfo.toolsInstallErrCode"

vmware-rpctool "info-get guestinfo.toolsInstallErrCode"

Reports the error code of last VMware Tools installation.
Note: VMware Tools installation and upgrade on Windows often requires a reboot the guest operating system for the changes to take effect. If a reboot is required but has not occurred, the guestinfo variable guestinfo.toolsInstallErrCode is set to 3010.
Windows Guest:

vmtoolsd --cmd "info-get guestinfo.driver.[driver name].version"

rpctool.exe "info-get guestinfo.driver.[driver name].version"

Linux Guest:

vmtoolsd --cmd "info-get guestinfo.driver.[driver name].version"

vmware-rpctool "info-get guestinfo.driver.[driver name].version"

Reports the running version of the driver.

For example:

vmtoolsd --cmd "info-get guestinfo.driver.pvscsi.version" returns 1.3.10.0

Windows Guest:

vmtoolsd --cmd "info-get guestinfo.ip"

rpctool.exe "info-get guestinfo.ip"

Linux Guest:

vmtoolsd --cmd "info-get guestinfo.ip"

vmware-rpctool "info-get guestinfo.ip"

Reports the IP address of Guest OS.
Windows Guest:

vmtoolsd --cmd "info-get guestinfo.appInfo"

rpctool.exe "info-get guestinfo.appInfo"

Linux Guest:

vmtoolsd --cmd "info-get guestinfo.appInfo"

vmware-rpctool "info-get guestinfo.appInfo"

Reports information about applications that are running inside the guest.
For customized variables, you can use the command:

vmtoolsd --cmd "info-set guestinfo.foo bar