
Getting Started with vSphere Command-Line Interfaces
10 VMware, Inc.
ESXi Shell Access with the Direct Console
AnESXisystemincludesadirectconsole(alsocalledDCUI)thatallowsyoutostartandstopthesystemand
toperformalimitedsetofmaintenanceandtroubleshootingtasks.ThedirectconsoleincludestheESXiShell,
whichisdisabledbydefault.YoucanenabletheESXiShellinthedirect
consoleorbyusingthevSphereClient.
Youcanenablelocalshellaccessorremoteshellaccess:
LocalshellaccessallowsyoutologintotheshelldirectlyfromtheDirectConsole.See“EnablingLocal
ESXiShellAccess”onpage 10.
Remoteshell(SSH)accessallowsyoutoconnecttothehostusingashellsuchasPuTTY,specifyauser
nameandpassword,andruncommandsintheshell.
TheESXiShellincludesallESXCLIcommands,asetofdeprecatedesxcfg-commands,andasetof
commandsfortroubleshootingandremediation.
Enabling Local ESXi Shell Access
YoucanenabletheESXiShellfromthedirectconsoleorfromthevSphereClient.
Ifyouhaveaccesstothedirectconsole,youcanenabletheESXiShellfromthere.
To enable the ESXi Shell in the direct console
1AtthedirectconsoleoftheESXihost,pressF2andprovidecredentialswhenprompted.
2ScrolltoTroubleshootingOptions
andpressEnter.
3 ChooseEnableESXiShellandpressEnter.
Ontheleft,EnableESXiShellchangestoDisableESXiShell.Ontheright,ESXiShellisDisabled
changestoESXiShellisEnabled.
4PressEscuntilyoureturntothemaindirectconsolescreen.
Ifyoudonothave
accesstothedirectconsole,youcanenabletheESXiShellfromthevSphereClient.
To enable the local or remote ESXi Shell from the vSphere Client
1 Selectthehost,clicktheConfigurationtab,andclickSecurityProfileintheSoftwarepanel.
2IntheServicessection,clickProperties.
3 SelectESXiShellandclickOptions.
4 ChangetheESXiShelloptions.
TochangetheStartuppolicyacrossreboots,clickStartandstopwithhostandrebootthehost.
Totemporarilystartorstoptheservice,clicktheStartorStopbutton.
5ClickOK.
AfteryouhaveenabledtheESXiShell,youcanuseitfromthatmonitororthroughaserialport.
TheESXiShelltimeoutsettingspecifieshowlongyoucanleaveanunusedsessionopen.By
default,the
timeoutfortheESXiShellis0,whichmeansthesessionremainsopenevenifitisunused.Ifyouchangethe
timeout,forexample,to30minutes,youhavetologinagainafterthetimeoutperiodhaselapsed.
I
MPORTANTAllESXCLIcommandsthatareavailableintheESXiShellarealsoincludedinthevCLIpackage.
VMwarerecommendsyouinstallthevCLIpackageonasupportedWindowsorLinuxsystemordeploythe
vMAvirtualappliance,andruncommandsagainstyourESXihosts.RuncommandsdirectlyintheESXi
Shell
introubleshootingsituationsonly.
NOTEIfyouareloggedinwhenthetimeoutperiodelapses,yoursessionwillpersist.However,theESXiShell
willbedisabled,preventingotherusersfromloggingin.
Comentários a estes Manuais