6.0
Table Of Contents
- Getting Started with vSphere Command-Line Interfaces
- Contents
- About This Book
- Managing vSphere with Command-Line Interfaces
- Installing vCLI
- Running Host Management Commands in the ESXi Shell
- Running vCLI Host Management Commands
- Overview of Running vCLI Host Management Commands
- Protecting Passwords
- Authenticating Through vCenter Server and vCenter Single Sign-On
- Authenticating Directly to the Host
- Trust Relationship Requirement for ESXCLI Commands
- Common Options for vCLI Host Management Command Execution
- Using vCLI Commands in Scripts
- Running Host Management Commands from a Windows System
- Running Host Management Commands from a Linux System
- Running DCLI Commands
- Index
Getting Started with vSphere Command-Line Interfaces
44 VMware, Inc.
DCLI History File
DCLImaintainsahistoryfileforeachDCLIclientthatrunsininteractivemode.Thefilestoresinformationon
aper‐userbasisandnotonaper‐clientbasis.
SpecifythemaximumnumberofcommandstobestoredwiththeDCLI_HISTSIZEva riable.Defaultis500
commands.
Youcanfindthe
fileatthefollowinglocation:
Windows:C:\Users\<username>\AppData\VMware\vapi\dcli.log
vCenterServerAppliance:/var/log/vmware/vapi/dcli.log
DCLI_CREDFILE SetthisvariabletopointtoaDCLIcredentialstorefile.Defaultvalueis
~/.dcli/.dcli_credstore
Passingthecredstore-fileoptiononthecommandlineoverridesvariable.
DCLI_HISTFILE SetthisvariabletopointtoaDCLIinteractiveshellhistoryfilepath.Defaultvalueis
~/.dcli/.dcli_history.
DCLI_HISTSIZE Setthisvariabletospecifythe
maximumnumberofcommandstobestoredintheDCLI
interactiveshellhistory.Defaultis500.
DCLI_LOGFILE SetthisvariabletospecifythelogfileforDCLI.
Table 5-3. Variables Supported by DCLI
Variable Description