vCLI Connection Options lists options that are available for all vCLI commands in alphabetical order. Examples in this book use
<conn_options> to indicate the position of connection options.
For example, esxcli <conn_options> filesystem nfs list means that you could use a configuration file, a session file, or just specify a target server and respond with a user name and password when prompted.
See the Getting Started with vSphere Command-Line Interfaces documentation for additional information and examples.
|
|
|
|
- -config <cfg_file_full_path>
|
|
|
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.
|
|
Specifies the encoding to be used. The following encodings are supported.
■
|
cp936 (Simplified Chinese)
|
■
|
cp850 (German and French).
|
You can use - -encoding to specify the encoding vCLI should map to when it is run on a foreign language system.
|
|
|
- -passthroughauthpackage <package>
|
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.
|
|
■
|
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.
|
|
|
|
|
|
- -savesessionfile <file>
|
|
|
If - -server points to a vCenter Server system, you use the - -vihost option to specify the ESXi host on which you want to run the command. A command is supported for vCenter Server if the - -vihost option is defined.
|
|
|
|
|
|
|
|
■
|
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.
|
|
|
Note: This option is not supported for each command. If supported, the option is included in the individual command option list.
|