6.5

Table Of Contents
4
Running vCLI Host Management Commands 31
Overview of Running vCLI Host Management Commands 32
Targeting the Host Directly 32
Targeting a Host That is Managed by a vCenter Server System 32
Protecting Passwords 32
Order of Precedence for vCLI Host Management Commands 33
Authenticating Through vCenter Server and vCenter Single Sign-On 34
Authenticating Directly to the Host 34
Create and Use a Session File 34
Using Environment Variables 35
Using a Conguration File 36
Using Command-Line Options 36
Using the Microsoft Windows Security Support Provider Interface 37
vCLI and Lockdown Mode 38
Trust Relationship Requirement for ESXCLI Commands 38
Download and Install the vCenter Server Certicate 38
Using the --cacertsle Option 39
Using the --thumbprint Option 39
Use the Credential Store 39
Common Options for vCLI Host Management Command Execution 40
Using vCLI Commands in Scripts 42
Run Host Management Commands from a Windows System 43
Run Host Management Commands from a Linux System 43
5
Running DCLI Commands 45
Overview of Running DCLI Commands 45
DCLI Syntax 46
DCLI Options 46
Using DCLI Commands 48
Displaying Help Information for DCLI Commands 48
Running DCLI Commands Included in the vCLI Package 48
Running DCLI Commands on the vCenter Server Appliance 49
Using DCLI with a Credential Store File 49
Order of Precedence for DCLI Authentication 49
Input, Output, and Return Codes 50
Using DCLI with Variables 50
Using DCLI Interactive Mode 50
DCLI SSL Connection 51
DCLI History File 51
Index 53
Getting Started with vSphere Command-Line Interfaces
4 VMware, Inc.