6.5

Table Of Contents
Connection Options for vmware-cmd
The vmware-cmd vCLI command supports only a specic set of connection options. Other vCLI connection
options are not supported, for example, you cannot use variables because the corresponding option is not
supported.
The following connection options are supported.
Option Description
--server <host>
-H <host>
Target ESXi or vCenter Server system.
--vihost <target>
-h <target>
When you run vmware-cmd with the -H option pointing to a vCenter Server system, use --
vihost to specify the ESXi host to run the command against.
-O <port>
Alternative connection port. The default port number is 902.
--username <username>
-U <username>
User who is authorized to log in to the host specied by --server or --vihost.
--password <password>
-P <password>
Password for the user specied by -U.
-Q <protocol> Protocol to use, either http or https. Default is https.
General Options for vmware-cmd
The vmware-cmd vCLI command supports a set of general options.
The following general options are supported.
Option Description
--help
Prints a help message that lists the options for this command.
-q
Runs in quiet mode with minimal output. The output does not display the specied operation and arguments.
-v
Runs in verbose mode.
Format for Specifying Virtual Machines
When you run vmware-cmd, the virtual machine path is usually required.
You can specify the virtual machine by using one of the following formats.
Type Syntax Examples
Datastore
prex style
'[ds_name]
relative_path'
n
'[myStorage1] testvms/VM1/VM1.vmx' (Linux)
n
"[myStorage1] testvms/VM1/VM1.vmx" (Windows)
UUID-based
path
folder/subfolder/file
n
'/vmfs/volumes/mystorage/testvms/VM1/VM1.vmx' (Linux)
n
"/vmfs/volumes/mystorage/testvms/VM1/VM1.vmx"
(Windows)
vSphere Command-Line Interface Concepts and Examples
124 VMware, Inc.