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
Contents
About This Book 5
1
Managing vSphere with Command-Line Interfaces 7
Overview of vSphere Command-Line Interfaces 7
Using ESXCLI for Host Management 10
ESXCLI Syntax 10
Running ESXCLI Commands Installed as Part of vCLI 11
ESXCLI Command Support When Host and vCLI Versions Do Not Match 11
Using PowerCLI to Manage Hosts and Virtual Machines 12
Using DCLI to Manage vCenter Services 12
DCLI Syntax 13
vCLI Package Contents 13
2
Installing vCLI 15
Installation Overview 15
Overview of Linux Installation Process 16
Installing the vCLI Package on Red Hat Enterprise Linux 18
Installing Required Prerequisite Software for Red Hat Enterprise Linux 19
Installing the vCLI Package on RHEL with No Internet Access 19
Installing vCLI on Linux Systems with Internet Access 20
Installing Prerequisite Software for Linux Systems with Internet Access 20
Install the vCLI Package on a Linux System with Internet Access 22
Uninstall the vCLI Package on Linux 23
Installing and Uninstalling vCLI on Windows 23
Install the vCLI Package on Windows 23
Uninstall the vCLI Package on Windows 24
Enabling Certicate Verication 24
Deploying vMA 24
3
Running Host Management Commands in the ESXi Shell 25
ESXi Shell Access with the Direct Console 25
Enabling Local ESXi Shell Access 26
ESXi Shell Timeout 26
Use the Local ESXi Shell 27
Remote ESXi Shell Access with SSH 27
Enable SSH Access in the Direct Console 27
Enable SSH from the vSphere Web Client 27
Access the Remote ESXi Shell with SSH 28
Lockdown Mode 28
Run an ESXCLI Command in the ESXi Shell 28
VMware, Inc.
3