February 2014
Intermediate to advanced
374 pages
8h 12m
English
VMware offers more command-line interfaces for vSphere than PowerCLI. One of them is the vSphere Command-Line Interface (vSphere CLI). The vSphere CLI has a command called
esxcli. PowerCLI has built-in support for this
esxcli command in the Get-EsxCli cmdlet.
There are no New-EsxCli, Set-EsxCli, and Remove EsxCli cmdlets. The Get-EsxCli cmdlet exposes the esxcli functionality for a host. You cannot create a new one, modify, or remove it.
The syntax of the Get-EsxCli cmdlet is:
Get-EsxCli -VMHost <VMHost[]> [[-Server] <VIServer[]>] [<CommonParameters>]
Use the Get-EsxCli cmdlet to connect to the esxcli functionality of a host and save the connection in a variable $esxcli:
PowerCLI C:\> $esxcli = Get-EsxCli -VMHost ...Read now
Unlock full access