vSphere Command-Line Interface Reference
The vSphere CLI command set allows you to run common system administration commands against vSphere systems from an administration server of your choice.
Linux Installation: If you accepted the defaults during installation, you can find the installed software in the following locations:
/usr/bin /usr/lib/vmware-vcli/apps/usr/share/doc/vmware-vcli/samples Windows Installation: vSphere CLI commands are installed in C:\Program Files\VMware\VMware vSphere CLI\bin by default.
The vSphere CLI includes the commands listed below, as well as the resxtop and esxcli commands.
resxtop, see the documentation in the Resource Management Guide. esxcli, see the online help. This command differs depending on the system you are running it on. To display usage information, click the command name in the Documentation column of Table 1.
Table 1: vSphere CLI commands
| Documentation | Description |
| esxcli command | Lists descriptions of esxcli commands. |
| esxcli fcoe | FCOE (Fibre Channel over Ethernet) comands |
| esxcli hardware | Hardware namespace. Used primarily for extracting information about the current system setup. |
| esxcli iscsi | iSCSI namespace for minitoring and managing hardware and software iSCSI. |
| esxcli license | License management commands. |
| esxcli network | Network namespace for managing virtual networking including virtual switches and VMkernel network interfaces. |
| esxcli software | Software namespace. Includes commands for managing and installing image profiles and VIBs. |
| esxcli storage | Includes core storage commands and other storage management commands. |
| esxcli system | System monitoring and management command. |
| esxcli vm | Namespace for listing virtual machines and shutting them down forcefully. |
| svmotion | Moves a virtual machine's configuration file and optionally its disks while the virtual machine is running. Must run against a vCenter Server system. |
| vicfg-advcfg | Performs advanced configuration including enabling and disabling CIM providers. Use this command as instructed by VMware. |
| vicfg-authconfig | Manages Active Directory authentication. |
| vicfg-cfgbackup | Backs up the configuration data of an ESXi system and restores previously saved configuration data. |
| vicfg-dns.pl | Specifies an ESX/ESXi host's DNS (Domain Name Server) configuration. |
| vicfg-dumppart | Manages diagnostic partitions. |
| vicfg-hostops | Allows you to start, stop, and examine ESX/ESXi hosts and to instruct them to enter maintenance mode and exit from maintenance mode. |
| vicfg-ipsec | Supports setup of IPSec. |
| vicfg-iscsi | Manages iSCSI storage. |
| vicfg-module | Enables VMkernel options. Use this command with the options listed, or as instructed by VMware. |
| vicfg-mpath | Displays information about storage array paths and allows you to change a path's state. |
| vicfg-mpath35 | Configures multipath settings for Fibre Channel or iSCSI LUNs. |
| vicfg-nas | Manages NAS file systems. |
| vicfg-nics | Manages the ESX/ESXi host's NICs (uplink adapters). |
| vicfg-ntp | Specifies the NTP (Network Time Protocol) server. |
| vicfg-rescan | Rescans the storage configuration. |
| vicfg-route | Lists or changes the ESX/ESXi host's route entry (IP gateway). |
| vicfg-scsidevs | Finds available LUNs. |
| vicfg-snmp | Manages the Simple Network Management Protocol (SNMP) agent. |
| vicfg-syslog | Specifies the syslog server and the port to connect to that server for ESXi hosts. |
| vicfg-user | Creates, modifies, deletes, and lists local direct access users and groups of users. |
| vicfg-vmknic | Adds, deletes, and modifies virtual network adapters (VMkernel NICs). |
| vicfg-volume | Supports resignaturing a VMFS snapshot volume and mounting and unmounting the snapshot volume. |
| vicfg-vswitch | Adds or removes virtual switches or vNetwork Distributed Switches, or modifies switch settings. |
| vifs.pl | Performs file system operations such as retrieving and uploading files on the remote server. |
| vihostupdate | Manages updates of ESX/ESXi hosts. Use vihostupdate35 for ESXi 3.5 hosts. |
| vihostupdate35 | Manages updates of ESX/ESXi version 3.5 hosts. |
| vmkfstools | Creates and manipulates virtual disks, file systems, logical volumes, and physical storage devices on ESX/ESXi hosts. |
| vmware-cmd | Performs virtual machine operations remotely. This includes, for example, creating a snapshot, powering the virtual machine on or off, and getting information about the virtual machine. |
VMware welcomes your suggestions for improving technical publications. Email your feedback to docfeedback@vmware.com
Copyright © 2008-2011 VMware, Inc. All rights reserved.