Retrieving the ESXCLI object in PowerCLI

To begin leveraging ESXCLI from PowerCLI, you need to obtain an ESXCLI object and begin looking through the structure of the object. In particular, the methods attached to an ESXCLI object are powerful for performing configuration tasks on a host.

ESXCLI is limited in scope to an individual ESXi host. This means that it is not aware of vCenter and performing an operation on many hosts is going to require you to loop through a set of defined hosts to execute the same operation.

ESXCLI works differently than PowerCLI. Where PowerCLI is object-based and all of the data and methods for changing data are stored within objects, ESXCLI works on the concept of namespaces. There are 14 namespaces that comprise ESXCLI. ...

Get PowerCLI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.