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
VMware, Inc. 13
Chapter 1 Managing vSphere with Command-Line Interfaces
ESXCLIcommands.TheESXCLIcommandsincludedinthevCLIpackageareequivalenttothe
ESXCLIcommandsavailableintheESXiShell.
vicfg‐commands.Thevicfg-commandsetissimilartothedeprecatedesxcfg-commandsetin
theESXiShell.
Miscellaneouscommands.AsmallsetofcommandsformanagingandmonitoringESXihosts,
includingvmkfstoolsandresxtop.Inmanycases,equivalentbutslightlydifferentcommandsare
availableintheESXiShell.
YoucanrunvCLIcommandsfromaWindowsorLinuxsystem,orusevMA.
InstallthevCLIcommandsetontheWindowsorLinuxsystemfromwhichyouwanttoadministeryour
ESXisystemsandrunvCLIcommands.See“InstallingvCLI”onpage 15.
DeployavMAvirtualmachinetoanESXisystemandrunvCLIcommandsfromthere.
AfteryouhaveinstalledthevCLIpackage,youcanrunthehostmanagementcommandsinthesetagainst
ESXihosts.YoucanruntheDCLIcommandsagainstaserverbyspecifyingtheIPaddressandcan
managethe
servicesassociatedwiththatserver.
YoumustspecifyconnectionparameterswhenyourunavCLIcommand.Theconnectionparametersdiffer
forDCLIcommandsandforothercommands.See“RunningvCLIHostManagementCommands”onpage 27
and“RunningDCLICommands”onpage 41.
I
MPORTANTESXiShellisintendedforexperiencedusersonly.Minorerrorsintheshellcanresultin
seriousproblems.InsteadofrunningcommandsdirectlyintheESXiShell,usevCLIorPowerCLI.