In environments with many hosts, managing hosts with scripts is faster and less error prone than managing the hosts from the vSphere Client.
vSphere includes several scripting languages for host management. See
ESXCLI Documentation and
vSphere API/SDK Documentation for reference information and programming tips, and VMware Communities for additional tips about scripted management. The vSphere Administrator documentation focuses on using the
vSphere Client for management.
- VMware PowerCLI
-
VMware PowerCLI is a Windows PowerShell interface to the vSphere API. VMware PowerCLI includes PowerShell cmdlets for administering vSphere components.
VMware PowerCLI includes hundreds of cmdlets, a set of sample scripts, and a function library for management and automation. See https://developer.vmware.com/powercli.
- ESXCLI
- ESXCLI includes a set of commands for managing ESXi hosts and virtual machines. See ESXCLI Documentation.
You can also use one of the scripting interfaces to the vSphere Automation SDK such as the vSphere Automation SDK for Python.