Common Options for vCLI Host Management Command Execution
vCLI Connection Options lists options that are available for all vCLI host management commands in alphabetical order. The table includes options for use on the command line and variables for use in configuration files. Options for executing DCLI commands are different.
See Running Host Management Commands from a Windows System and Running Host Management Commands from a Linux System.
In vCLI 6.0 and later, you can only run ESXCLI commands if a trust relationship exists between the host you are running the command on and the system you are targeting with the --server option (ESXi host or vCenter Server system). You can establish the trust relationship by specifying the CA certificate file or by passing in the thumbprint for each target server (ESXi host or vCenter Server system).
Name of a credential store file. Defaults to <HOME>/.vmware/credstore/vicredentials.xml on Linux and <APPDATA>/VMware/credstore/vicredentials.xml on Windows. Commands for setting up the credential store are included in the vSphere SDK for Perl, which is installed with vCLI. The vSphere SDK for Perl Programming Guide explains how to manage the credential store.
cp936 (Simplified Chinese)
shftjis (Japanese)
iso-885901 (German).
You can use - -encoding to specify the encoding vCLI should map to when it is run on a foreign language system.
Use this option with - -passthroughauth to specify a domain-level authentication protocol to be used by Windows. By default, SSPI uses the Negotiate protocol, which means that client and server try to negotiate a protocol that both support.
Uses the specified password (used with - -username) to log in to the server.
If - -server specifies a vCenter Server system, the user name and password apply to that server. If you can log in to the vCenter Server system, you need no additional authentication to run commands on the ESXi hosts that server manages.
If - -server specifies an ESXi host, the user name and password apply to that server.
Use the empty string (' ' on Linux and “ “ on Windows) to indicate no password.
If - -server points to a vCenter Server system, you can also specify the --psc option to log in to the vCenter Server system with vCenter Single Sign-On.
Use the - -vihost option to specify the ESXi host that you want to run the command against. See Authenticating Through vCenter Server and vCenter Single Sign-On.
Expected SHA-1 host certificate thumbprint if no CA certificates file is provided in the --cacertsfile argument. The thumbprint is returned by the server in the error message if you attempt to run a command without specifying a thumbprint or certificate file.
If - -server specifies a vCenter Server system, the user name and password apply to that server. If you can log in to the vCenter Server system, you need no additional authentication to run commands on the ESXi hosts that server manages.
If - -server specifies an ESXi system, the user name and password apply to that system.
When you run a vCLI command with the - -server option pointing to a vCenter Server system, use - -vihost to specify the ESXi host to run the command against.
Note: This option is not supported for each command. If supported, the option is included when you run <cmd> --help.
vCLI Common Options lists options not used as connection options that you can use when you run a vicfg- vCLI command.