6.0

VMware, Inc. 6
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
Enabling the ESXi Shell
YoucanenabletheESXiShellfromthedirectconsoleandfromthevSphereClient.EnablingtheESXiShell
meansmakingitaccessibleasalocalconsoleavailabledirectlyoroveranout-of-bandnetwork.
To enable the ESXi Shell from the Direct Console
1AccessthedirectconsoleoftheESXihost,pressF2,andprovidecredentialswhenprompted.
2Scroll
toTroubleshootingOptions,andpressEnter.
3 SelectEnableESXiShellandpressEnter.
Ontheleft,EnableESXiShellchangestoDisableESXiShell.Ontheright,ESXiShellisDisabled
changestoESXiShellisEnabled.
4 (Optional)Configurethetime-outfortheESXiShell
a SelectModifyESXiShelltimeout
andpressEnter.
bEnterthetime-outvalueinminutesandpressEnter .
5PressEscuntilyoureturntothemaindirectconsolescreen.
YoucanenabletheESXiShellfromthevSphereClient.
To enable the local or remote ESXi Shell from the vSphere Client
1 Selectthehost,clicktheConfigurationtab,andclickSecurityProfileintheSoftwarepanel.
2IntheServices
section,clickProperties.
3 SelectESXiShellandclickOptions.
4 ChangetheESXiShelloptions.
Totemporarilystartorstoptheservice,clicktheStartorStopbutton.
Toenableaccesspermanently,clickStartandstopwithhost.Thechangewilltakeeffectthenexttime
yourebootthehost.
5ClickOK.
AfteryouhaveenabledtheESXiShell,youcanuseitfromthatmonitororthroughanout-of-bandnetwork
connection.
To enable to local or remote ESXi Shell from the vSphere Web Client
1 Selectthehost,clickthe
Managetab,andclickSettings.
2UnderSystem,selectSecurityProfile.
3IntheServicespanel,clickEdit.
4 Selectaservicefromthelist.
ESXiShell
SSH
DirectConsoleUI
5ClickServiceDetailsandselectthestartuppolicyStartandstopmanually.
WhenyouselectStartandstopmanually,theservicedoesnotstartwhenyourebootthehost.Ifyouwant
theservicetostartwhenyourebootthehost,selectStartandstopwithhost.
6 SelectStarttoenabletheservice.
7ClickOK.
AfteryouhaveenabledtheESXiShell,youcanuseitfromthatmonitororthroughanout-of-bandnetwork
connection.