You can use exit codes to integrate the VMware Tools configuration utility commands with a scripting tool.

The following table lists the common error codes defined in toolbox-cmd. Each subcommand may return other Windows or Linux error codes.

Table 1. Exit Codes
Code Number Applicable Command Description
0 All commands The command was successful.
1 All commands A error occurred.

For the shrink command, 1 indicates that although shrinking is enabled, the shrink command cannot be carried out.

64 All commands The command-line argument is not valid (EX_USAGE).
69

upgrade

timesync

config

device

stat

shrink

For the device command, 69 indicates that the specified device does not exist. Use the list subcommand to display valid names of devices.

For the stat command, 69 indicates that the program could not communicate with the host (EX_UNAVAILABLE).

70

globalconf

gueststore

There is an internal software error (EX_SOFTWARE).
71 Not used There is a system error (EX_OSERR).
72

device

shrink

script

A critical OS file is missing (EX_OSFILE).
75

upgrade

stat

shrink

script

config

globalconf

logging

device

The host does not support the query, perhaps because the host is not an ESX/ESXi host (EX_TEMPFAIL).
77

script

disk

upgrade

globalconf

logging

info

config

Permission error occurred (EX_NOPERM).
130

Shrink

SIGNT received (VM_EX_INTERRUPT).