6.5
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
- Run Host Management Commands from a Windows System
- Run Host Management Commands from a Linux System
- Running DCLI Commands
- Index
The following table describes the DCLI options.
Option Description Default
server
The vCenter Server system to which DCLI connects.
localhost
interactive
Runs DCLI in interactive shell mode, which supports tab
completion of commands, options, and some option values. It
also supports saving the command history across DCLI
sessions.
Interactive mode is faster because DCLI caches the list of
commands available on a vCenter Server system.
prompt
Prompt that the interactive shell uses.
dcli>
skip-server-
verification
Skips the server SSL verication process.
False
cacert-file
Species the certicate authority certicates for validating
SSL connections.
more
Displays page-wise output.
formatter
Output formaer, which has one of the following possible
values.
n
simple
n
table
n
xml
n
json
n
html
n
csv
Default is table for lists of structures
and simple for all other output.
loglevel
The log level, which has one of the following possible values.
n
debug
n
info
n
warning
n
error
info
username
If you run from the local shell, most DCLI commands do not
require the user name. If you are running vCLI commands,
the user you specify must be able to authenticate to the
vCenter Server system.
The user you specify must have the privileges to perform the
task, as specied through vCenter Server roles.
You are prompted for the password. The password is not
echoed to screen.
credstore-file
Path to the credential store le to use for credential store
operations or for reading login credentials.
Use this option only if the default credential store le name
does not work in your environment.
By default, the credential store le is in
the .dcli/.dcli_credstore directory inside the home
directory.
$HOME/.dcli/.dcli_credstore
credstore-add
Adds login credentials entered for a command to the DCLI
credential store le.
This option stores the server IP address, session manager,
username and password for the command being executed. If
an entry already exists, the command updates the entry.
dcli directory inside the home
directory.
$HOME/.dcli
Chapter 5 Running DCLI Commands
VMware, Inc. 47