6.5

Table Of Contents
esxcli --config ${VI_CONFIG_FILE} storage nfs add --host ${VIHOST} --share <share point> --
volume-name <volume name>
esxcli --config ${VI_CONFIG_FILE} storage nfs list
done
Run Host Management Commands from a Windows System
After you install vCLI and reboot your system, you can test the installation by running a vCLI or SDK for
Perl command from the Windows command prompt.
Procedure
1 From the Windows Start menu, choose Programs > VMware > VMware vSphere CLI > Command
Prompt.
A command prompt shell for the location where vCLI is installed appears. You have easy access to vCLI
and to vSphere SDK for Perl commands from that location.
2 Run the command, passing in connection options and other options.
On Windows, the extension .pl is required for vicfg- commands, but not for ESXCLI.
<command>.pl <conn_options> <params>
The following examples show the dierence between ESXCLI and vicfg- syntax.
esxcli --server <esxi_HOSTNAME_OR_IP> --username "snow-white" --password "dwarf$" network ip
interface list
vicfg-mpath.pl --server <esxi_HOSTNAME_OR_IP> --username "snow-white" --password "dwarf$" --
list
The system prompts you for a user name and password.
Run Host Management Commands from a Linux System
After installation, you can run vCLI commands and vSphere SDK for Perl utility applications at the
command prompt.
Procedure
1 Open a command prompt.
2 (Optional) Change to the directory where you installed the vCLI.
Default is /usr/bin.
3 Run the command, including the connection options.
<command> <conn_options> <params>
Specify connection options in a conguration le or pass them on the command line. The extension .pl
is not required on Linux. The following examples show the dierence between ESXCLI and vicfg-
syntax.
esxcli --server <esxi_HOSTNAME_OR_IP> --username snow\-white --password dwarf\$ network ip
interface list
vicfg-mpath --server <esxi_HOSTNAME_OR_IP> --username snow\-white --password dwarf\$ --list
The system prompts you for a user name and password for the target server.
Chapter 4 Running vCLI Host Management Commands
VMware, Inc. 43