You are on page 1of 28

Technical Note

Command-Line Management in vSphere 5.0 for Service Console Users


ESXi 5.0
StartingwithvSphere5.0,theserviceconsole(alsocalledconsoleOSorCOS)withitsassociatedLinux installationisnolongeravailable.IfyouarecurrentlyusingESXserviceconsolecommands,scripts,agents,or logs,thistechnicalnotehelpsyoutransitiontoanoffhostimplementationortousetheESXiShellinspecial cases.

Introductiononpage 1 TransitioningServiceConsoleCommandsonpage 2 ESXiShellAccessonpage 5 ReplacingAgentsonpage 9 LogginginvSphere5.0onpage 10 RetrievingNetworkingInformationonpage 12 AddingThirdPartyExtensionstoHostsonpage 13 ReferencetoReplacementsforServiceConsoleCommandsonpage 13

IMPORTANTChangesmadetothehostusingtheDCUI,thevSphereClient,ESXCLI,orotheradministrative toolsarecommittedtopermanentstorageeveryhourorupongracefulshutdown.Changesmightbelostifthe hostfailsbeforetheyarecommitted.

Introduction
InvSphere5.0,VMwareoffersthefollowingtools,CLIs,andAPIsthatreplaceESX4.xserviceconsole components.
CLI or Tool vCLI Description IncludesESXCLIcommands,vicfg- commands,andafewothercommandsfor managingvSphere. PowerCLIcmdletsformanagingESXihostsand virtualmachines. Availability InstallavCLIpackageonaWindowsorLinux systemorruncommandsfromvMA. InstallMicrosoftPowerShellonaWindows system,andinstallvSpherePowerCLItorun bothPowerShellandPowerCLIcmdletfromthe PowerCLIprompt.

PowerCLI

VMware, Inc.

Command-Line Management in vSphere 5.0 for Service Console Users

CLI or Tool vMA

Description ALinuxvirtualappliancethatincludesthe vSphereSDKforPerlandthevCLIpackage. Alsosupportsthevifastpassauthentication component. Setoftroubleshootingcommandstousewhen vCLIcannotaccessyourESXisystem.Includes ESXCLIcommandsandesxcfg-commands (deprecated).

Availability DeployvMAonanESXisystemandrun commandsagainstauthenticatedtargetservers fromvMA. TheESXiShellisdisabledbydefault.Youcan enabletheShellforlocalorremoteaccess.

ESXiShell commands

Transitioning Service Console Commands


Ifyouarecurrentlymanagingyourenvironmentwithserviceconsolecommands,youcanperformthesame managementtasksinvSphere5.0inoneofthefollowingways.

UseoneofthevSphereClientinterfaces. InstallvCLIorPowerCLIonamanagementserver,writescriptswiththosecommands,andrunthescripts againsttargethosts.SeeRunningvCLIorPowerCLICommandsfromRemoteHostsonpage 3. Forcertaintroubleshootingandadvancedmanagementcommands,usecommandsfromtheESXCLI commandsetdirectlytheESXiShell.SeeUsingtheESXiShellonpage 5.


vSphere 5.0 OffhostmanagementwithvCLI. InstallonWindowsorLinuxorusevMA. See TransitioningServiceConsole Commandsonpage 2.Referenceto ReplacementsforServiceConsole Commandsonpage 13listsvCLIor ESXCLIreplacementsforserviceconsole commandsandpointstomigrationlists inthistechnicalnote. GettingStartedwithvSphere CommandLineInterfaces vSphereCommandLineInterfaceSolutions andExamples

ESX 4.x Service Console Serviceconsolecommands

Serviceconsolecommands

OffhostmanagementwithVMware PowerCLIcmdletsfromaWindowssystem.

Serviceconsolecommands

OnhostmanagementintheESXiShellis possibleifsystemfailuresorotherissues preventyoufromusingoffhostmanagement commands. ESXiShellisdisabledbydefault IfyourunagentsintheESX4.xservice console,youcanreplacethemwith infrastructureservicesinmanycases. RunningthirdpartyagentsintheESXiShell isnotsupported.

SeeESXiShellLocalAccessonpage 5 andRemoteAccesstoESXiShellUsing SSHonpage 7.

Agents

ReplacingAgentsonpage 9.

Linuxnetworking commands. Serviceconsolelogs

NotavailableintheESXiShell.UseESXCLI commandsinstead. Finegrainedcontroloversystemlogsis available.Youcansendlogstothelocal systemortoaremotehost.

SeeRetrievingNetworking Informationonpage 12. LogginginvSphere5.0onpage 10

Figure 1illustratesthedifferencesbetweenCLIsinESXi4.1andESXi5.0.

InESX4.1,afairlylargesetofserviceconsolecommandsisavailable.AsmallsetofESXCLIcommands isavailableinboththeserviceconsoleandaspartofthevCLIpackage.ThevCLIpackageincludes,in additiontoESXCLIcommands,asetofvicfg-commandsandothercommandsforhostmanagement. ESXi5.0doesnotincludeaserviceconsole.IntheESXiShell,youcanrunamuchexpandedsetofESXCLI commandsandasmallsetofothercommands.ThesameESXCLIcommands,aswellasafewother commands,areincludedinthevCLIpackageforoffhostmanagement.


2

VMware, Inc.

Command-Line Management in vSphere 5.0 for Service Console Users

Figure 1. Command-Line Interfaces in ESX 4.1 and ESXi 5.0


Commands running on host vCLI

ESX 4.1

Service console commands Commands running on host

ESXCLI ESXCLI

vicfg-and other commands vCLI

ESXi 5.0

esxcfg(deprecated) POSIX (subset)

ESXCLI ESXCLI

vicfg-and other commands

Using vSphere Client Interfaces


MosttasksyouperformintheESXServiceConsolecanbeperformedbyoneofthegraphicaluserinterfaces toESXiorvCenterServersystems.Theinterfacesallowyoutomanageyourinfrastructure,andtoperform operationsonmultiplehostsatthesametime.

InstallthevSphereClientontheWindowssystemofyourchoiceandconnecttoanESXiorvCenterServer system.Performmanagementoperationsusingtheclient. UsethevSphereWebClientfromoneofthesupportedbrowsers.ThevSphereWebClientisanew interfaceandsupportsprimarilyoperationsonvirtualmachines.

vSphere5.0documentationexplainshowtoperformtasksbyusingoneoftheclientUIs.Onlinehelpis availablefrombothclientUIs.

Running vCLI or PowerCLI Commands from Remote Hosts


IfyouhavescriptsthatuseESX4.xserviceconsolecommandsorruncommandsintheESX4.xserviceconsole directly,runningvCLIcommandsorPowerCLIcmdletsfromthehostonwhichyouinstalledthosepackages givesthebestresults.Runningoffhostishighlyrecommendedbecauseitfacilitatesscripting. YoucanusevCLIevenifhostsareinlockdownmodebytargetingthevCenterServersystemandspecifying thetargetESXihostwiththe--vihostparameter,forexample:
esxcli --server <my_vc> --vihost <my_esxi> [<authentication>] storage nfs list

Ifyoudonotspecifyadditionalauthenticationparameters,thevCLIinfrastructurepromptsforausername andpasswordforthevCenterServersystemspecifiedby--server.

vCLI Command Set


ThevCLIcommandsetincludescommonsystemadministrationcommandswhichyoucanrunagainstESXi systemsfromanymachinewithnetworkaccesstothosesystems.YoucanalsorunmostvCLIcommands againstavCenterServersystemandtargetanyESXisystemthatvCenterServersystemmanages. InstallthevCLIcommandsetonasupportedversionsofWindowsorLinux.Theuserrunningacommand againstaservermustbeauthenticatedforthatserver.ThevCLIpackageincludesseveralcommandsets.

VMware, Inc.

Command-Line Management in vSphere 5.0 for Service Console Users

Command Set ESXCLIvCLI commands

Description ExtensiblecommandframeworkformanagingmanyaspectsofvSphere. Runesxcli --helptoseealltop-levelnamespaces.Youcanrun--helpatanylevelofthe hierarchy. TheesxclicommandsetintheESXiShellandtheesxclivCLIcommandsetsupportthesame functionality.WhenrunningvCLIcommands,youmustspecifythetargetserverand authenticationoptions.

vicfg- (esxcfg-) vCLIcommands

SetofcommandsformanagingmanyaspectsofvSphere.Foreachvicfg-vCLIcommand,the packageincludesanesxcfg-vCLIcommandthatisequivalentofthevicfg-vCLIcommand. Important:esxcfg-vCLIcommandsarenotalwaysequivalenttocorrespondingesxcfg- serviceconsoleorESXiShellcommands. vicfg-commandswillbedeprecatedinfuturereleases.Useesxclicommandsinsteadwhere possible.

Management commands

Asmallsetofmanagementcommandsisavailable.Commandsincludevifsforfilemigration, vmware-cmdformanagingvirtualmachines,andvmkfstoolsforVMFSfilemanagement.

ThefollowingdocumentationhelpsyouworkwithvCLIcommands.

GettingStartedwithvSphereCommandLineInterfacesgivesoverviewsofavailablecommandsandincludes instructionsforinstallingvCLIonWidowsorLinuxanddetailedinformationaboutconnectionoptions. vSphereCommandLineInterfaceConceptsandExamplespresentsusageexamplesformanycommands,such assettingupsoftwareandhardwareiSCSI,addingvirtualswitches,settingupActiveDirectory authentication,andsoon.Thedocumentincludesthesameexamplewiththevicfg-commandandthe ESXCLIcommandwheresupported. vSphereCommandLineInterfaceReferenceisareferencetobothvicfg-commandsandESXCLIcommands. Thevicfg-commandhelpisgeneratedfromthePODavailableforeachcommand,runpod2htmlfor anyvicfg-commandtogenerateindividualHTMLfilesinteractively.TheESXCLIreferenceinformation isgeneratedfromtheESXCLIhelp.

Running ESXCLI Commands Against ESXi 4.x Hosts


WhenyourunanESXCLIvCLIcommand,youmustknowthecommandssupportedonthetargethost specifiedwith--serverorasavMAtarget.

IfyouruncommandsagainstESXi4.xhosts,ESXCLI4.xcommandsaresupported. IfyouruncommandsagainstESXi5.0hosts,ESXCLI5.0commandsaresupported.

VMwarepartnersmightdevelopcustomESXCLIcommandsthatyoucanrunonhostswherethepartnerVIB hasbeeninstalled. Runesxcli --server <target> --helpforalistofnamespacessupportedonthetarget.Youcandrill downintothenamespacesforadditionalhelp. IMPORTANTESXCLIonESX4.xhostsdoesnotsupporttargetingavCenterServersystem.Youcantherefore notruncommandswith--serverpointingtoavCenterServersystemevenifyouinstallvCLI5.0.

PowerCLI Cmdlet Set


VMwareoffersacomprehensivesetofPowerCLIcmdlets.YoucaninstallthePowerCLIpackageona WindowssystemonwhichMicrosoftPowerShellisinstalledandusePowerCLIcmdletstomanagehostsand virtualmachines.PowerCLIcmdletsandvCLIcommandsoverlapinfunctionality.ThePowerCLIfocusison virtualmachinemanagement.ThevCLIfocusisonhostmanagement. SeethevSpherePowerCLIdocumentationset,availableintheVMwareAdministrationAutomationProducts sectionofhttp://www.vmware.com/support/pubs.

VMware, Inc.

Command-Line Management in vSphere 5.0 for Service Console Users

Using the ESXi Shell


EachESXihostincludesanESXiShell,whichisdisabledbydefault.Administratorscanusethatshellto performtroubleshootingandadvancedtaskssuchastestingscriptsinnonproductionenvironments. Youcanaccesstheshellasfollows:

Enablelocalaccessandusethelocalshellonthephysicalconsoleorusingaserialport.SeeESXiShell LocalAccessonpage 5. EnableSSHaccessandusetheshelloveramanagementnetworkwithSSH.SeeESXiShellAccesson page 5.

IMPORTANTESXiShellisintendedforexperiencedCLIusers.Minorerrorsintheshellcanresultinserious problems.InsteadofrunningcommandsdirectlyintheESXiShell,usevCLIcommandsorPowerCLIcmdlets. TheESXiShellincludesthefollowingcommandsets.


Command Set ESXCLIcommands Description ExtensiblecommandframeworkformanagingmanyaspectsofvSphere. Runesxcli --helptoseealltop-levelnamespaces.Youcanrun--helpatanylevelofthe hierarchy. TheesxclicommandsetintheESXiShellandtheesxclivCLIcommandsetsupportthesame functionality.WhenrunningvCLIcommands,youmustspecifythetargetserverand authenticationoptions. esxcfg-commands (deprecated) SetofcommandsformanagingmanyaspectsofvSphere.Mostesxcfg-commandsavailable intheESX4.xserviceconsoleareavailableintheESXiShellbutaredeprecatedinESXi5.0and willberemovedinafuturerelease. UseESXCLIcommandsinsteadofesxcfg-commands.IfnoESXCLIcommandexists,usethe vicfg-commandsinthevCLIcommandset. Othercommands AsmallsetofPOSIX-stylecommandsisincludedintheshell(seeShellCommandson page 9).ThesecommandsarenotsupportedbyVMwarebutareincludedforusein troubleshootingsituations.UsethevSphereClientorVMwarecommandsinsteadwhere possible. SetoftroubleshootingcommandsforusewithVMwareTechnicalSupport.localcli commandsequivalenttoESXCLIcommandsbutbypassthehostdaemon(hostd). Warning:localclicommandsareonlyforsituationswhenhostdisunavailableandcannot berestarted.Afteryourunalocalclicommand,youmustrestarthostd.Usinglocalcli commandsinothersituationsisnotsupported.Aninconsistentsystemstateandpotential failurecanresult.

localclicommands

ESXi Shell Access


AnESXisystemincludesadirectconsolethatallowsyoutostartandstopthesystemandtoperformalimited setofmaintenanceandtroubleshootingtasks.ThedirectconsoleincludestheESXiShell.TheESXiShell includesasetoffullysupportedESXCLIcommandsandasetofcommandsfortroubleshootingand remediation.YoumustenableaccesstotheESXiShellfromthedirectconsoleofeachsystem.Youcanenable accesstothelocalESXiShelloraccesstotheESXiShellwithSSH.

ESXi Shell Local Access


TheESXiShellisdisabledbydefault.YoucanenabletheESXiShellfortroubleshootingfromthedirectconsole. AllESXCLIcommandsthatareavailableintheESXiShellarealsoincludedinthevCLIpackage.Installthe vCLIpackageordeploythevMAvirtualappliance,andruncommandsagainstyourESXihosts,insteadof runningcommandsintheESXiShellitself.SeeGettingStartedwithvSphereCommandLineInterfaces.

Enabling the ESXi Shell


YoucanenabletheESXiShellfromthedirectconsoleandfromthevSphereClient.EnablingtheESXiShell meansmakingitaccessibleasalocalconsoleavailabledirectlyoroveranout-of-bandnetwork.

VMware, Inc.

Command-Line Management in vSphere 5.0 for Service Console Users

To enable the ESXi Shell from the Direct Console 1 2 3 AccessthedirectconsoleoftheESXihost,pressF2,andprovidecredentialswhenprompted. ScrolltoTroubleshootingOptions,andpressEnter. SelectEnableESXiShellandpressEnter. Ontheleft,EnableESXiShellchangestoDisableESXiShell.Ontheright,ESXiShellisDisabled changestoESXiShellisEnabled. 4 (Optional)Configurethetime-outfortheESXiShell a b 5 SelectModifyESXiShelltimeoutandpressEnter. Enterthetime-outvalueinminutesandpressEnter.

PressEscuntilyoureturntothemaindirectconsolescreen.

YoucanenabletheESXiShellfromthevSphereClient. To enable the local or remote ESXi Shell from the vSphere Client 1 2 3 4 Selectthehost,clicktheConfigurationtab,andclickSecurityProfileintheSoftwarepanel. IntheServicessection,clickProperties. SelectESXiShellandclickOptions. ChangetheESXiShelloptions.

Totemporarilystartorstoptheservice,clicktheStartorStopbutton. Toenableaccesspermanently,clickStartandstopwithhost.Thechangewilltakeeffectthenexttime yourebootthehost.

5 6

ClickOK. (Optional)Configurethetime-outfortheESXiShellfromthevSphereClient. a b c d IntheConfigurationtabsSoftwarepanel,clickAdvancedSettings. Intheleftpanel,clickUserVars. LocateUserVars.ESXiShellTimeOutandenterthetimeoutvalueinminutes. ClickOK.

AfteryouhaveenabledtheESXiShell,youcanuseitfromthatmonitororthroughanout-of-bandnetwork connection.

Accessing the ESXi Shell with the Direct Console


AfteryouenableESXiShellaccess,youcanaccessthelocalshell. To access the local ESXi Shell 1 2 Atthemaindirectconsolescreen,pressAlt-F1toopenavirtualconsolewindowtothehost. Providecredentialswhenprompted. Whenyoutypethepassword,charactersarenotdisplayedontheconsole. 3 4 Tologout,typeexitintheshell. Toreturntothedirectconsole,pressAlt-F2.

Setting ESXi Shell Timeout


TheESXiShelltimeoutsettingspecifieshowlong,inminutes,youcanleaveanunusedsessionopen.By default,thetimeoutfortheESXiShellis0,whichmeansthesessionremainsopenevenifitisunused.Ifyou changethetimeout,forexample,to30minutes,youhavetologinagainafterthetimeoutperiodhaselapsed.
VMware, Inc. 6

Command-Line Management in vSphere 5.0 for Service Console Users

NOTEIfyouareloggedinwhenthetimeoutperiodelapses,yoursessionwillpersist.However,theESXiShell willbedisabled,preventingotherusersfromloggingin. YoucanmodifythetimeoutfromtheDirectConsoleorfromthevSphereClient. To modify the ESXi Shell Timeout

IntheDirectConsole,followthesesteps. a b SelectModifyESXiShelltimeoutandpressEnter. Enterthetime-outvalueinminutesandpressEnter.

InthevSphereClient,followthesesteps. a b c d IntheConfigurationtabsSoftwarepanel,clickAdvancedSettings. Intheleftpanel,clickUserVars. LocateUserVars.ESXiShellTimeOutandenterthetimeoutvalueinminutes. ClickOK.

Remote Access to ESXi Shell Using SSH


IfSecureShellisenabledfortheESXiShell,youcanrunshellcommandsbyusingaSecureShellclientsuch asSSHorPuTTY.

Enabling SSH for the ESXi Shell


Bydefault,youcannotaccesstheESXiShellusingaSecureShellclient.YoucanenableSSHaccessfromthe directconsole. To enable SSH access in the direct console 1 2 3 AtthedirectconsoleoftheESXihost,pressF2andprovidecredentialswhenprompted. ScrolltoTroubleshootingOptions,andpressEnter. SelectEnableSSHandpressEnteronce. Ontheleft,EnableSSHchangestoDisableSSH.Ontheright,SSHisDisabledchangestoSSHis Enabled. 4 PressEscuntilyoureturntothemaindirectconsolescreen.

YoucanenableremotecommandexecutionfromthevSphereClient. To enable SSH from the vSphere Client 1 2 3 4 5 SelectthehostandclicktheConfigurationtab. ClickSecurityProfileintheSoftwarepanel. IntheServicessection,clickProperties. SelectSSHandclickOptions. ChangetheSSHoptions.

Totemporarilystartorstoptheservice,clicktheStartorStopbutton. ToenableSSHpermanently,clickStartandstopwithhost.Thechangetakeseffectthenexttimeyou rebootthehost.

ClickOK.

AfteryouhaveenabledSSH,youcanuseanSSHclienttologintotheESXiShellandrunESXiShell commands.

VMware, Inc.

Command-Line Management in vSphere 5.0 for Service Console Users

Accessing the ESXi Shell with SSH


IfSSHisenabledonyourESXihost,youcanuseanSSHclienttoruncommandsonthatshell. To access the ESXi Shell with SSH 1 2 OpenanSSHclient. SpecifytheIPaddressordomainnameoftheESXihost. PrecisedirectionsvarydependingontheSSHclientyouuse.Seevendordocumentationandsupport. 3 Providecredentialswhenprompted.

ESXi Shell Commands


TheESXiShellincludesseveralsetsofcommands. Table 1. ESXi Shell Commands
Command Set ESXCLIcommands Description AlargesetofnewESXCLIcommandssupportsmanyadministrativetasks.Thecommandsare fullysupportedandtestedbyVMwareandincludecommand-linehelp.SeeGettingStartedwith vSphereCommandLineInterfaces. Theesxcfg- commandsavailableintheserviceconsolearedeprecated.Thecommandswill beremovedfromtheESXiShellinafuturerelease.SeeReferencetoReplacementsforService ConsoleCommandsonpage 13. SeeShellCommandsonpage 9. SetoftroubleshootingcommandsforusewithVMwareTechnicalSupport.localcli commandsareequivalenttoESXCLIcommandsbutbypassthehostdaemon(hostd). Warning:localclicommandsareonlyforsituationswhenhostdisunavailableandcannot berestarted.Afteryourunalocalclicommand,youmustrestarthostd.Usinglocalcli commandsinothersituationsisnotsupported.Aninconsistentsystemstateandpotential failurecanresult.

esxcfg-commands

POSIX-like commands localclicommands

ESXCLI Commands
TheESXiShellinESXi5.0includesalargesetofnewESXCLInamespacesandcommands.Thecomplete ESXCLIcommandsetisalsopartofthevCLIpackage.TheESXCLIcommandsyntaxinESXi5.0ismore flexiblethanthesyntaxinESXi4.xandsupportsmultiplenamespaces.
esxcli [dispatch_option] <namespace> [namespace, ...] <cmd> [cmd_options]

Eachcommandcanuseanarbitrarynumberofnamespaces,anddifferentcommandshaveadifferentnumber ofelements.Allcommandshavealsobeenreviewedforconsistencyandmostcommandshavebeenrenamed. Forexample:

Eachgetcommandreturnssinglevalues.
esxcli hardware memory get

Thelistcommandsareusedformultiplereturnvalues.
esxcli hardware cpu list

Manycommandshaveoptions.Useanequalsignoraspacebetweentheoptionandtheoptionvalue.
esxcli filesystem nfs add --host=<host_name> --share=<share_name> --volume=<volume_name> esxcli filesystem nfs add --host <host_name> --share <share_name> --volume <volume_name>

IMPORTANTForacompletelistofESXCLIcommands,seethevSphereCommandLineInterfaceReference.The vSphereCommandLineInterfaceConceptsandExamplesdocumentillustrateshowtoperformcommontaskswith ESXCLIorvicfg-commands.

VMware, Inc.

Command-Line Management in vSphere 5.0 for Service Console Users

Shell Commands
IncontrasttoVMwareESX,VMwareESXidoesnotincludeaconsoleOSwithalargesetofshellcommands andothersoftware.However,asmallsetofshellcommandsisavailableintheESXiShell. IMPORTANTThecommandsarenottestedorsupportedbyVMware.UseVMwarecommandssuchas ESXCLI,vicfg-commands,andsoon,instead. Youcanseealistofcommandsin/usr/bin.Whenyoulistthecommandswithls -al,noticethatseveralof theutilitiesareredirectedtocommandsappropriateinthevSphereenvironment.Thefollowingcommands producedifferentresultsthantypicalshellcommands.

Severalcommandsareredirectedtovmkvsitools. IMPORTANTvmkvsitoolsisintendedforusewithVMwareTechnicalSupport.Donotuse vmkvsitoolstomanageyoursystem.

Pingcommandsareredirectedtovmkping. SomeadditionalcommandsareavailableintheESXiShellforcertaintroubleshootingtasks.Usethese commandswheninstructedbyaVMwareKnowledgeBasearticleorVMwareTechnicalSupportstaff. Usermanagementcommandsaredeprecated.

Goto/usr/binandrunls -atoseeacompletelist.

Replacing Agents
WithESX4.x,managementagentsandhardwaremonitoringandmanagementagentsrunintheservice console.WithESXi5.0,agentsareimplementedinotherways.

Managementagents.VMwarepartnerscreatemanagementagentsbyusingoneofthevSphereAPIs. Hardwareagents.DevelopersuseCIM(CommonInformationModel)agents.CIMisastandards-based approachtomonitoringhardwareresources.CIMoutputisreadablebythird-partymanagementtools. TheVMkernelcanincludebothVMwareCIMprovidersandPartnerCIMproviders.UseavSphereClient loggedintoavCenterServersystemtoviewhardwareinformationincludingalarms.UsethevSphere ClientextensionframeworkorthevSphereCIMSDKforcustomization. Infrastructureserviceagents.AdministratorscanuseagentsavailableintheESXiShell.Agentsinclude hostd(hostdaemon),vpxa,NTP,syslog,SNMP,andsoon.UsethevSphereSDK,vCLIcommands,or ESXCLIcommandstomanagetheagents. Table 2. Infrastructure Services for Production Environments
Function Timesynchronization Centralizedlogcollection ESX NTPagentinservice console Syslogagentinservice console SNMPagentinservice console ActiveDirectory(AD) agentinserviceconsole BuiltinActiveDirectory service ESXi Built-inNTPservice Built-inSyslogservice Management vicfg-ntpcommand esxcli system syslog commands vSphereClient SNMPmonitoring Localaccess authentication Built-inSNMPservice Built-inActiveDirectory service vicfg-snmpcommand vSphereClient vicfg-authconfigvCLI command.

VMware, Inc.

Command-Line Management in vSphere 5.0 for Service Console Users

Logging in vSphere 5.0


LogginginvSphere5.0hasbeensignificantlyenhanced.Younowhavefine-grainedcontroloversystemlogs, thelocationwherelogsaresent,and,foreachlog,defaultsizeandrotationpolicy.Youcansetuploggingwith thevSphereClientorwiththeesxcli system syslogcommand.Youcanalsosetuploggingbehaviorfora hostbyusingtheHostProfilesinterfaceinthevSphereClientandcanthenimportthathostprofileintoother hosts.

Remote Logging Setup in ESXi


YoucanmovemostESXilogginginformationoffthehost.Collectingdatatoacentrallocationisespecially usefulforhostsprovisionedwithAutoDeploy.Youcanperformthesetasks:

SetupNTPontheESXihostsyouaremonitoringandonthesystemsthathosttheloggingservicesorstore thelogs.YoucanusethevSphereClientorthevicfg-ntpvCLIcommandtosetupNTP. Configuresyslogtosavelogstoaremotehost.Youcansendlogstoaspecificdirectory,andconfigure subloggers.SeeUsingESXCLIforSyslogConfigurationonpage 10. vCenterServerandESXihaveSNMPagents.YoucansetupthevCenterServerSNMPagentwiththe vSphereClient.YoucansetuptheESXiSNMPagentwiththevSphereClientorthevicfg-snmp command.SeevSphereCommandLineInterfaceSolutionsandExamples. ListenforCIMindications.

Using ESXCLI for Syslog Configuration


Theesxcli system syslogcommandallowsyoutoconfiguretheloggingbehaviorofyourESXisystem. YoucanperformthesamecustomizationswiththevSphereclient,asdiscussedinthevCenterServerandHost Managementdocumentation.Thecommandhasthefollowingoptions: Table 3. esxcli syslog Options
Option mark reload config get config set Description Markalllogswiththespecifiedstring. Reloadtheconfigurationandupdateanyconfigurationvaluesthathavechanged. Retrievethecurrentconfiguration. Settheconfiguration.Useoneofthefollowingoptions.

--logdir=<path>Savelogstoagivenpath. --loghost=<host>Sendlogstoagivenhost(seediscussiononloghostformat below) --logdir-unique=<true|false>Specifywhetherthelogshouldgotoaunique subdirectoryofthedirectoryspecifiedinlogdir. --default-rotate=<int>Defaultnumberoflogrotationstokeep --default-size=<int>Sizebeforerotatinglogs,inkilobytes.

config logger list config logger set

Showcurrentlyconfiguredsub-loggers. Setconfigurationoptionsforaspecificsublogger.Useoneofthefollowingoptions:

--id=<str>IDoftheloggertoconfigure(required) --reset=<str>Resetvaluestodefault --rotate=<long>Numberofrotatedlogstokeepforaspecificlogger(requires --id) --size=<long>Setsizeoflogsbeforerotationforaspecificlogger,inkilobytes (requires--id)

VMware, Inc.

10

Command-Line Management in vSphere 5.0 for Service Console Users

esxcli system syslog Examples Thefollowingworkflowillustrateshowyoumightuseesxcli system syslogforlogconfiguration. 1 Showconfigurationoptions.


esxcli system syslog config get Default Rotation Size: 1024 Default Rotations: 8 Log Output: /scratch/log Logto Unique Subdirectory: false Remote Host: <none>

Setalllogstokeeptwentyversions,thenstartoverwritingtheoldestlog.
esxcli system syslog config set --default-rotate=20

SettherotationpolicyforVMkernellogsto10rotations,rotatingat2MB.
esxcli system syslog config logger --id=vmkernel --size=2048 --rotate=10

Sendlogstoremotehostmyhost.mycompany.com.ThelogswillusethedefaultUDPport,514.
esxcli system syslog config set --loghost='myhost.mycompany.com'

Sendlogs/scratch/mylogsontheremotehostmyhost.mycompany.comusingTCP/IPport1514.
esxcli system syslog config set --loghost='tcp://myhost.mycompany.com:1514' --logdir='/scratch/mylogs'

Sendalogmessageintoalllogssimultaneously.
esxcli system syslog mark --message="this is a message!"

Reloadthesyslogdaemonandapplyconfigurationchanges.
esxcli system syslog reload

Viewing Logs in the ESXi Shell


IntheESX4.xshell,thelocationforlogsis/var/log.IntheESXiShell,youcanalsofindallcurrentlogsinthe /var/logdirectory.Someofthelogsaresymboliclinkstothe/var/run/logdirectory. Mostlogsareattoplevelandnotinsideadirectoryunder/var/run/log.Availablelogsdependonwhich pluginsareinstalledandwhatotherchangesmighthavebeenmadetothesystem.Thefollowingtablelists somefrequentlyusedlogsintheESXiShell.
ESX 4.x shell /var/log/vmware/hostd.log /var/log/vmkwarning /var/log/vmksummary /var/log/messages /var/log/vmware/vpx/vpxa.log ESXi 5.0 shell /var/log/hostd.log /var/log/vmkwarning.log /var/log/vmksummary.log /var/log/vmkernel.log /var/log/vpxa.log VMkernelwarningsandVMkernel events. vCenterServeragentlog. Description Logforthehostdaemon.

Core Dump Setup for ESXi


Acoredumpcanbeusedtodeterminethereasonforsystemfailure.WithESX,thecoredumpwasplacedon thelocaldiskinmanycases.WithESXi,youhavetwooptionsformanagingcoredumps.

CreateadiagnosticpartitiononSANstorage.Eachhostmusthaveadiagnosticpartitionof100MB.If multiplehostsshareaSAN,configureadiagnosticpartitionwith100MBforeachhost. InstallandconfigureESXiDumpCollector.NewinESXi,theDumpCollectorserviceallowsyoutosend coredumpstoanetworkserver.ESXiDumpCollectorisespeciallyusefulfordeterminingreasonsfor failureofESXihostsprovisionedwithAutoDeploy.

VMware, Inc.

11

Command-Line Management in vSphere 5.0 for Service Console Users

Youcanuseesxcli system coredumptoconfigurearemoteorlocalcoredumppartition.Youcanalsouse theNetworkConfigurationhostprofiletosetuphoststouseESXiDumpCollector.Foreithercase,youcan applythehostprofileofahostthatusesESXiDumpCollectortootherhosts. To use ESXi Dump Collector 1 InstalltheESXiDumpCollectorserviceonthevCenterServersystemoraWindowsorLinuxsystemof yourchoice. ESXiDumpCollectorisoneoftheservicesyoucaninstallusingthevCenterServersysteminstallation package.SeevSphereInstallationandSetup. IfyouusethevCenterServeronLinuxappliance,ESXiDumpCollectorispreinstalled. 2 SetupESXisystemsthatshoulduseESXiDumpCollectorwithcommandsintheesxcli system coredumpnamespace. Twonamespacesaresupportedinsidethisnamespace.

esxcli system coredump partition


get:Retrieveoneofthedumppartitionvalues. list:ListallpartitionsonthesystemthathaveapartitiontypematchingtheVMwareCore partitiontype. set:Setthecoredumppartitionforthissystem.

esxcli system coredump network


get:GetthecurrentlyconfigureparametersforESXiDumpCollector(networkcoredump),if enabled. set:Settheparametersusedfornetworkcoredump.

ThefollowingexamplesetsupthenetworkandenablesESXiDumpCollectorwiththeESXCLIvCLI command.
esxcli --server MyESXiHost system coredump network set --interface-name vmk0 --server-ipv4 10XX... --port 6500 esxcli --server MyESXiHost system coredump network get --enable true --type network

YouarepromptedforausernameandpasswordfortheESXihost.

Retrieving Networking Information


LinuxcommandsforretrievingnetworkinginformationarenotincludedintheESXiShell.Youcaninstead useESXCLIcommands. OnESXi5.0,ifconfiginformationistheinformationfortheVMkernelNICthatattachestotheManagement Networkportgroup.YoucanretrievethatinformationbyusingESXCLIcommands.
esxcli esxcli esxcli esxcli network network network network ip ip ip ip interface interface interface interface list ipv4 get -n vmk<X> ipv6 get -n vmk<X> ipv6 address list

YoucanretrieveinformationaboutDNSwiththeesxcli network ip dnscommandinthefollowingtwo namespaces:


esxcli network ip dns search esxcli network ip dns server

ForinformationcorrespondingtotheLinuxnetstatcommand,usethefollowingESXCLIcommand.
esxcli network ip connection list

VMware, Inc.

12

Command-Line Management in vSphere 5.0 for Service Console Users

Adding Third-Party Extensions to Hosts


TheprocessofaddingpatchesissimplifiedinESXi5.0.Allpatchesandthird-partyextensionscanbemade availableasVIBpackages.WhenaVMwarepartnerreleasesathird-partyextensionasaVIBpackage,the partnercanmakethepackageavailableasaZIPdepot(offlinedepot). 1 2 3 DownloadtheZIPdepottoyourESXisystembutdonotunpackit. Runesxcli software vibtoaddthepackagetoyoursystem. RebootyourESXisystem

TheVIBsystemrefreshesthehostdaemonafteryourebootyoursystem.IftheVIBrequiresanexceptionto thefirewallrules,rebootingalsoupdatesthefirewallruleset. Youcaninsteaduseafirewallconfigurationfiletospecifyportrulesforhostservicesyouwanttoenablefor theextension. vSphereSecuritydocumentationdiscusseshowtoadd,apply,andrefreshafirewallrulesetandliststheesxcli network firewallcommands.TheESXi5.0ruleset.xmlformatisthesameasinESX/ESXi4.x,buthastwo additionaltags,enabledandrequired.TheESXi5.0firewallstillsupportstheoldformat. vSphereUpgradedocumentationdiscussesusingesxcli software sourcesandesxcli software vibto exploreandinstallpatchesandextensions. Insomesituations,youmightusevSphereUpdateManagerinsteadoftheesxclicommandtoinstall third-partyextensions.Theextensionvendorprovidesinformationontheinstallorupgradeprocess.

Reference to Replacements for Service Console Commands


Table 4listscommonESX/ESXi4.xserviceconsolecommandsandcorrespondingESXi5.0shellcommands. IMPORTANTThisdocumentdoesnotpresentacompletelistofESXCLIcommands.Thefocusisonreplacing existingserviceconsolecommands.SeethevSphereCommandLineInterfaceReferenceforacompletelistof commands. ThelinksintheCommandcolumnofthetablepointtomoredetailedinformationforeachcommand,with correspondingESXCLIcommandsforeachoptionwhereavailable.ClickthelinkintheMoreInformation columnforatablewithdetailedinformationaboutthatcommand. Table 4. Replacements for Service Console Commands
Service Console Command esxcli esxcfg-advcfg esxcfg-dumppart esxcfg-firewall ESXi 5.0 Replacement SyntaxformostESXCLIcommandshaschanged. esxcli system settings advanced esxcli system coredump InESX4.x,protectstheserviceconsole.InESXi5.x, esxcfg-firewallisnotnecessarybecausenoservice consoleexists. Theesxcli network firewallcommandisavailablefor ESXifirewallmanagement. esxcfg-info ProvidesaviewoftheinternalstateoftheVMkerneland serviceconsolecomponents.Someofthefunctionalityis coveredbycertainESXCLIcommands. vicfg-ipsecvCLIcommand esxcfg-infoonpage 19 No More Information ESXCLICommand Syntaxonpage 14 esxcfg-advcfgonpage 17 esxcfg-dumpparton page 18 vSphereSecurity documentation. Deprecated ESXi Shell No Yes Yes N.A.

esxcfg-ipsec

vSphereCommandLine InterfaceConceptsand Examples

No

VMware, Inc.

13

Command-Line Management in vSphere 5.0 for Service Console Users

Table 4. Replacements for Service Console Commands (Continued)


Service Console Command esxcfg-swiscsi esxcfg-hwiscsi esxcfg-module esxcfg-mpath esxcfg-nas esxcfg-nics esxcfg-rescan esxcfg-route esxcfg-scsidevs esxcfg-vmknic esxcli system module esxcli storage core pathcommands. esxcli storage nfs esxcli network nic esxcli storage corecommands. vicfg-routevCLIcommand Useesxcli storage coreandesxcli storage core filesystemcommands. esxcli network interfacecoversmostoptionsand includesanumberofoptionsnotavailableinthe esxcfg-vmkniccommand. esxcli storage filesystem Usedtoconfigureserviceconsolenetworkingin4.xsystems. NotneededandnotavailableintheESXi5.0ESXiShell. esxcli network vswitch standardforstandardswitches. esxcli network vswitch dvsfordistributedswitches. esxtop Supportedinthe5.0ESXiShell.Ifyoudonothaveaccessto theESXiShell,usetheresxtopremotevCLIcommandfrom asupportedLinuxsystemorfromvMA. esxclisoftware vib Note:Bothesxupdateandvihostupdatearenotsupported againstESXi5.0hosts. vmkfstools ThevmkfstoolscommandisavailableintheESXi5.0Shell. ThevmkfstoolsvCLIcommandoptionsdifferslightlyfrom theshellcommandoptions. Nochangeandnotdeprecated. NotavailableinESXiShell.AvailableinvCLI.Inmanycases, VMwarePowerCLIcmdletsperformthesametasksas vmware-cmd. Createsatararchivecontainingdebugginginformationfor theserver. ThiscommandisintendedforusewithVMwareSupport.No equivalentvCLIcommandexists. vmkfstoolsonpage 28 No esxcfg-vswitchon page 25 esxtoponpage 27 esxcfg-scsidevson page 21 esxcfg-vmknicon page 24 esxcfg-volumeon page 25 ESXi 5.0 Replacement esxcli iscsi More Information esxcfg-swiscsiand esxcfg-hwiscsionpage 20 esxcfg-moduleon page 21 esxcfg-mpathonpage 22 esxcfg-nasonpage 22 esxcfg-nicsonpage 23 esxcfg-rescanonpage 23 Deprecated ESXi Shell Yes Yes Yes Yes Yes Yes No Yes Yes

esxcfg-volume esxcfg-vswif esxcfg-vswitch

Yes Yes Yes No

esxupdate

esxupdateonpage 27

Yes

vmkping vmware-cmd

Usevmkping --helpfor information. Usevmware-cmd--help forinformation. Usevm-support --help formoreinformation.

No Yes

vm-support

No

ESXCLI Command Syntax InESXi4.x,allESXCLIcommandsmustfollowthesamesyntax.


esxcli <conn_options> <namespace> <app> <cmd> [cmd_options]

InESXi5.0,theESXCLIcommandsyntaxismoreflexible.Eachcommandcanuseanarbitrarynumberof namespaces.Differentcommandshaveadifferentnumberofelements.
esxcli <conn_options> <namespace> [namespace, ...] <cmd> [cmd_options]

IMPORTANTYoumustupdateallESXCLIcommandsexplicitly;noscriptsareavailableforthetask.Starting withvSphere5.0,mostmanagementcommandswillbeESXCLIcommands.

VMware, Inc.

14

Command-Line Management in vSphere 5.0 for Service Console Users

Thefollowingtablelistsequivalentcommandsforesxclicorestoragecommands. Table 5. esxcli 4.x corestorage namespace


ESXCLI in ESXi 4.x corestorage claiming reclaim --<option> corestorage claiming unclaim --<option> corestorage claimrule add --<options> corestorage claimrule convert --commit corestorage claimrule delete --<option> corestorage claimrule list --claimrule corestorage claimrule load --claimrule-class corestorage claimrule move --<option> corestorage claimrule run --<option> ESXCLI in ESXi 5.0 storage core claiming reclaim --<option> storage core claiming unclaim --<option> storage core claimrule add --<options> Severalnewoptionsforthiscommandareavailable.Seethe vSphereCommandLineInterfaceReference,orrunthe commandwith--help. storage core claimrule convert --commit storage core claimrule remove --<option> storage core claimrule list --claimrule-class storage core claimrule load --claimrule-class storage claimrule move --<option> storage core claimrule run --<option> corestorage device list --device storage core device stats get storage core device list --device Otherlistcommandsareincludedinthisnamespace. corestorage plugin list --plugin-class storage core plugin list --plugin-class

VMware, Inc.

15

Command-Line Management in vSphere 5.0 for Service Console Users

Thefollowingtablelistsequivalentcommandsforesxcli storage nmpcommands. Table 6. esxcli nmp namespace


esxcli storage nmp commands in ESXi 4.x nmp device list --list nmp device list --device nmp device setpolicy <option> nmp path list [--device|--path] nmp fixed getpreferred <option> nmp psp list nmp psp getconfig [--device|--path] nmp psp setconfig [--config|--device|--path] nmp roundrobin getconfig <option> nmp roundrobin setconfig <option> nmp satp list nmp satp listrules nmp satp addrule <option> nmp satp deleterule <option> nmp satp getconfig --device nmp satp getconfig --path nmp satp setconfig --config --device nmp satp setconfig --config --path nmp satp setdefaultpsp [--boot | --psp | --satp] esxcli storage nmp commands in ESXi 5.0 nmp device list nmp device list --device nmp device set <option> nmp psp generic deviceconfig get --device nmp psp fixed deviceconfig set <option> nmp psp generic deviceconfig get [--device]

nmp psp generic deviceconfig set [--config|--path] nmp psp roundrobin deviceconfig get <option> nmp psp roundrobin deviceconfig set <option> nmp satp list nmp satp rule list nmp satp rule add <option> nmp satp rule remove <option> nmp satp generic deviceconfig get --device nmp satp generic pathconfig get --path nmp psp generic deviceconfig set nmp psp generic pathconfig set nmp satp setdefaultpsp [--boot | --psp | --satp]

Theesxcli networkcommandsincludedinESXCLI4.1havebeenrenamed.Manyadditionalnetworking commandsareavailableinESXCLI5.0. Table 7. esxcli network namespace


esxcli 4.x network neighbors list network connection list esxcli 5.0 network ip neighbor list network ip connection list Comment ListARPtableentries. ListactiveTCP/IPconnections.

Theesxcli swiscsinamespacesupportsafewmanagementcommandsforsoftwareiSCSIinESXi4.1.The commandshavebeenrenamed.ESXCLIequivalentshavealsobeenaddedfortheesxcfg-swiscsiand esxcfg-hwiscsicommands. Table 8. esxcli swiscsi namespace


ESXCLI 4.x swiscsi nic [--add | --list | --remove] swiscsi vmknic --list esxcli 5.0 iscsi networkportal [add | list | remove] iscsi logicalnetworkportal list Comment PerformoperationsontheiSCSInetwork portal(iSCSIVMkernelNIC). PerformoperationsontheiSCSIlogical networkportal.

VMware, Inc.

16

Command-Line Management in vSphere 5.0 for Service Console Users

Table 8. esxcli swiscsi namespace (Continued)


ESXCLI 4.x swiscsi vmnic --list swiscsi session [--add | --list | --remove] esxcli 5.0 iscsi physicalnetworkportal list iscsi session [add | list | remove] Comment PerformoperationsontheiSCSIphysical networkportal(uplink). PerformoperationsoniSCSIsessions. Note:Theaddandremovecommandsare intendedonlyforusebyVMware partners. Usetheiscsi session connection namespacetoperformoperationsonthe iSCSIconnection.

The4.1esxcli vmsnamespaceallowsyoutolistvirtualmachinesandforciblystopthem.Thenamespacehas beenrenamed.


esxcli 4.x vms vm kill esxcli 5.0 vm process kill Comment Forciblykillvirtualmachinesthatarenotrespondingtonormalstop operations.Requiresthetypeofkilloperation(soft,hard,force) andtheworldIDofthevirtualmachinetokill. DisplaytheworldIDofvirtualmachinesonthehost.

vms vm list

vm process list

esxcfg-advcfg Insteadofesxcfc-advcfg,useesxcli system settings advanced.Thefollowingcommandsare supported. Table 9. esxcfg-advcfg Replacement Commands
esxcfg-advcfg option -g|--get ESXCLI Command system settings advanced list -o=option Description GetthevalueoftheVMkerneladvanced configurationoption.Us--optionto retrieveinformationforasingleoption,or --treetolimitthelisttoaspecificsubtree. SetthevalueoftheVMkerneladvanced configurationoption. ResetaVMkerneladvancedconfiguration optiontodefault. ListallVMkerneladvancedconfiguration options.

-s|--set <value> -d|--default -l|--list -q|--quiet -k|--set-kernel -j|--get-kernel -c|--get-config -m|--set-message

system settings advanced set system settings advanced set -d|--default system settings advanced list Nolongersupported system settings kernel set system settings kernel list Notsupported system welcomemsg set

SetaVMkernelloadtimeoptionvaluefor thenextboot. GetaVMkernelloadtimeoptionvaluefor thenextboot.

Setthewelcomemessageforthedirect console.Youcanretrievethemessagewith system welcomemsg get. EnsuretheVMkernelsystemUUIDisset andprintit. Getthevalueofauser-specifiedgeneric value. Setthevalueofauser-specifiedgeneric value.

-u|--uuid -G|--get-user-var -S|--set-user-var

system uuid get system settings advanced list | grep <var> system settings advanced set

VMware, Inc.

17

Command-Line Management in vSphere 5.0 for Service Console Users

Table 9. esxcfg-advcfg Replacement Commands (Continued)


esxcfg-advcfg option -D|--del-user-var -U|--user-var -A|--add-option <name> ESXCLI Command Addingordeletinguservariablesisnolonger supported. --option=<str> Nolongersupported. ThisoptionwasusedtoaddCIMoptions.Use theCIMSDKinstead. Addingordeletinguservariablesisnolonger supported. Addingordeletinguservariablesisnolonger supported. Addingordeletinguservariablesisnolonger supported. Addingordeletinguservariablesisnolonger supported. Addingordeletinguservariablesisnolonger supported. Addingordeletinguservariablesisnolonger supported. Nolongersupported. ThisoptionwasusedtoaddCIMoptions.Use theCIMSDKinstead. Useesxcli system settings advanced listtolistalloptionsinstead. TheESXCLIcommandliststhevalueofthe VMkerneladvancedconfigurationoptions. Theoutputincludesthecurrentsettingfor eachoption. Nameoftheuservariabletouseforwhen retrievingandsettinguservariables. Description

-T|--add-type -E|--add-desc -F|--add-default -N|--add-min -M|--add-max -H|--add-hidden <val> -L|--del-option <name>

-V|--has-option <name>

-r|--restore

Nolongeravailable.Internaluseonlyin previousversions.

esxcfg-dumppart WhenusingtheESXiShell,youcanconfigureyoursystemtosavecoredumpstoalocalpartitionortousethe ESXiDumpCollectorandsavecoredumpstoaprespecifiedlocalorremotepartition.


Useesxcli coredump partitioncommandstoconfigurealocaldumppartition. InstallESXiDumpCollectortosupportsendingcoredumpstoaremotehostandrunesxcli coredump networkcommandstoconfiguretheremotedumppartition.

IMPORTANTYoucannolongeruseesxcfg-dumpparttoenablecoredumps.UseESXCLIinstead. Thefollowingtableliststheesxcfg-dumppartcommandoptionsandcorrespondingESXCLIcommands.

VMware, Inc.

18

Command-Line Management in vSphere 5.0 for Service Console Users

Table 10. esxcfg-dumppart Replacement Commands


-

esxcfg-dumppart Option -l | --list

ESXCLI Command system coredump partition list

Description ListallpartitionsontheESXisystem thathavetheappropriatepartition typetoactasadiagnosticpartition. Important:Executionmighttake severalminutesandslowdownyour ESXihostbecausethecommandscans allLUNsonthesystem.

-t | --get-active

system coredump partition get

Displaytheactivediagnosticpartition forthissystem.RunningtheESXCLI commandreturnstheactive configuredpartition. Ifanactivepartitionexists,the commandreturnsthenaanumberof theLUNandthecorresponding partition,intheformat naa.xx...:p.

-c | --get-config -S | --smart-activate

system coredump partition get system coredump partition set --smart --enable= true

Gettheconfigureddiagnosticpartition forthesystem. Runthesmartactivatealgorithmto activatetheconfigureddump partition,orifnopartitionis configured,selectthebestpossible candidatebasedonthemediaofthe availabledumppartitions. Makethespecifiedpartitionthe currentdiagnosticpartition. Deactivatetheactivediagnostic partitionordeactivateESXiDump Collector. CAUTION:Ifyourunthiscommand, yoursystemcannotwriteerrorstoa fileuntilanotherpartitionisactivated. Youloseanyerrorrecordiferrors occur.

-a | --activate -d | --deactivate

system coredump partition set --enable=true system coredump partition set --enable=false

-s <naa.xx:1> | --set <naa.xxxxxxxx:1> -C | --copy [-n | --newonly] [-z | --zdumpname] [-o | --slot] -L --log

system coredump partition set --partition xxx.xxx NocorrespondingESXCLIcommand.

Setandactivatethediagnostic partition.Specifythepartitionusing naa.xxx:1oreui.xxxsyntax.

NocorrespondingESXCLIcommand.

esxcfg-info NocomprehensivesetofequivalentESXCLIcommandscorrespondingtoesxcfg-infoisavailableyet.The followingcommandsareofferingsomeoftheesxcfg-infocapability. Table 11. ESXCLI Information Retrieval Commands


Command hardware bootdevice list hardware clock get hardware cpu cpuid get harware cpu cpuid get --cpu=<n> Description Listthebootdeviceorderforthishost,ifavailable. Displaythecurrenthardwareclocktime. GetinformationfromtheCPUIDinstructiononeach CPUonthishost. GetinformationfromtheCPUIDinstructiononCPU number<n>.

VMware, Inc.

19

Command-Line Management in vSphere 5.0 for Service Console Users

Table 11. ESXCLI Information Retrieval Commands (Continued)


Command hardware cpu global get hardware cpu list hardware memory get hardware pci list hardware platform get network vswitch standard list esxcli network vswitch standard policy shaping get esxcli network vswitch standard policy failover get esxcli network vswitch standard policy security get network vswitch standard portgroup policy shaping get network vswitch standard portgroup policy failover get network vswitch standard portgroup policy security get network nic list network ip interface list network ip dns server list Description ListinformationandconfigurationglobaltoallCPUs. ListallCPUsonthishost. Getinformationaboutmemory. ListallthePCIdevicesonthishost. Getinformationabouttheplatform. ListthevirtualswitchesontheESXihost. Retrievethenetworkshapinginformationforthe virtualswitch. Retrievethefailoverpolicyinformationforthevirtual switch. Retrievethesecuritypolicyinformationforthe virtualswitch. Retrievethenetworkshapinginformationforthe portgroup. Retrievethefailoverpolicyinformationfortheport group. Retrievethesecuritypolicyinformationfortheport group. ListthephysicalNICscurrentlyinstalledandloaded onthesystem. ListtheVMkernelnetworkinterfacescurrently knowntothesystem. PrintalistoftheDNSservercurrentlyconfiguredon thesystemintheorderinwhichtheywillbeused.

esxcfg-swiscsi and esxcfg-hwiscsi TheESX4.xserviceconsoleincludestwocommandsforiSCSImanagement. Theesxcfg-swiscsicommandmanagessoftwareiSCSI.EquivalentESXCLIcommandsareavailablein vSphere5.0. Table 12. esxcfg-swiscsi Replacement Commands
esxcfg-swiscsi Option -e --enable -D --disable -q --query -s --scan ESXCLI Command iscsi software set --enabled=true iscsi software set --enabled=false iscsi software get iscsi adapter discovery rediscover -A <adapter_name> storage core adapter rescan [-A <adapter_name> | -all] -k --kill -r --restore Notsupported Notsupported Description EnableSoftwareiSCSIonthesystem,if disabled. DisableSoftwareiSCSIonthesystem,if enabled. CheckifSoftwareiSCSIisenabledor disabledonthesystem. Scanthesystemfordisksavailablethrough SoftwareiSCSIinterface.Callthetwo commandsinorder.

Theesxcfg-hwiscsicommandmanagedhardwareiSCSI.

VMware, Inc.

20

Command-Line Management in vSphere 5.0 for Service Console Users

Table 13. esxcfg-hwiscsi Replacement Commands


esxcfg-hwiscsi Option -l -a [allow | deny] <vmkernel_SCSI_adapter> ESXCLI Command iscsi physicalnetworkportal param get 1.Findtheadapter. iscsi adapter list 2.GetARPredirectioninformation. iscsi physicalnetworkportal param get -A vmhba4 3.EnableARPredirect. iscsi physicalnetworkportal param set --option ArpRedirect=true -A vmhba4 -j [enable | disable] <vmkernel_SCSI_adapter> 1.Findtheadapter. iscsi adapter list 2.Getjumboframeinformation. iscsi physicalnetworkportal param get -A vmhba4 3.Enablejumboframesupport. iscsi physicalnetworkportal param set --option ArpRedirect=true --adapter=vmhba4 Enableordisable jumboframesupport. Description Listcurrent configuration AllowordenyARP redirectiononthe adapter.

esxcfg-scsidevs Theesxcfg-scsidevscommandhasequivalentESXCLIcommandsforsomeoftheoptions. Table 14. esxcfg-scsidevs Replacement Commands


esxcfg-scsidevs Option -a |--hbas -l | --list ESXCLI Command storage core adapter list storage core device list storage core device list Description PrintthemappingsforeachSCSIhostbusadapter(HBA)to theinformationaboutthatadapter. Listallthestoragedevicesknowntothesystem,including bothSCSIandnon-SCSIdevices.Thelistcanbefilteredusing the--deviceoptiontolimittheoutputtospecificdevice. Listallthedeviceuniqueidentifiers.Includethemapping fromprimaryidentifiertoallsecondaryidentifiers.Thelist canbefilteredusingthe--deviceoptiontolimittheoutput tospecificdevice. PrintthemappingsfromaVMFSvolumetothedeviceand partitionsusedinthatVMFS.

-c -u

-m -f

storage filesystem list

ESXCLIdoesnothaveequivalentoptionsforthe--device,--vfat,and--hba-device-listfiltering options. The-o|--offline-cos-devand-n|--online-cos-devoptionsareserviceconsolespecificoptionsandnot applicabletoESXi5.0. esxcfg-module Theesxcfg-modulecommandsupportsmanipulationoftheVMkernelloadablemodulesanddevice drivers.Forthefollowingesxcfg-moduleoptions,ESXCLIcommandsareavailable. Table 15. esxcfg-module Replacement Commands
esxcfg-module Option --get-options <module_name> -g <module_name> --set-options <options> <module_name> -s <options> <module_name> ESXCLI Command system module parameters list system module parameters set Description Returnstheoptionstringconfiguredtobe passedtothemodulewhenthemoduleis loaded. Specifiestheoptionstringtobepassedtothe modulewhenthemoduleisloaded.

VMware, Inc.

21

Command-Line Management in vSphere 5.0 for Service Console Users

Table 15. esxcfg-module Replacement Commands (Continued)


esxcfg-module Option -e --enable -d --disable ESXCLI Command system module set --enabled=true system module set --enabled=false Description Enablethegivenmodule,indicatingthatit shouldloadatboottime. Disablethegivenmoduleandpreventitfrom loadingatboot.Disablingthemodulehasno immediateeffectonthemodulestateona runningsystem. Querythesystemforthemodulestoloadat boot.

-q --query -m --mod-name -<name> -u --unload --list -l -i --show-info

system module list --enabled=[true|false] Notsupported. Notsupported. system module list --loaded=[true|false] system module get system module parameters list

ListthesetofcurrentlyloadedVMkernel modules. Showinformationaboutthemodule.This commandcanberunagainstamodulefile. Skipmodulevalidationforalloptions.Theget andlistcommandsdonotsupport--force. Displaymoreverboseinformation.

-f --force -v --verbose -<level>

system module <cmd> --force Not supported

esxcfg-mpath Theesxcfg-mpathcommandsupportslistinginformationaboutFibreChanneloriSCSILUNsandchanging apathsstate.InvSphere5.0,equivalentESXCLIcommandsareavailable. Table 16. esxcfg-mpath Replacement Commands


esxcfg-mpath Option -l --list <path> | <device> -L --list-compact -m --list-map -b --list-paths -G --list-plugins ESXCLI Command storage core path list storage core device list Notsupported storage core device list storage core path list storage core plugin list FordevicescurrentlyregisteredwiththePSA,listthe filtersattachedtothem.(Notanexactequivalent) Listalldeviceswiththeircorrespondingpaths,orlist pathsforthespecifieddevice. Listallmultipathingpluginsloadedintothesystem. Ataminimum,thiscommandreturnsNMP(Native MultipathingPlugin).Ifothermultipathingplugins havebeenloaded,theyarelistedaswell. SetthestateofagivenLUNpathtoeitheractiveor off.Thisoptionrequiresthatthe--pathoptionsisset andspecifieseitherthepathUIDorthepathruntime name. Ifyouarechangingapathsstate,thechange operationfailsifI/Oisactivewhenthepathsettingis changed.Reissuethecommand.Youmust successfullyperformatleastoneI/Ooperationbefore thechangetakeseffect. Description Listdetailedinformationforallpathsonthesystem orforthespecifiedpathordevice.

-s --state

storage core path setstate --path=<path> --state=[active|off]

esxcfg-nas Theesxcfg-nascommandmanipulatesNASfilesystemsassociatedwithESXisystems.InvSphere5.0, equivalentESXCLIcommandsareavailable.

VMware, Inc.

22

Command-Line Management in vSphere 5.0 for Service Console Users

Table 17. esxcfg-nas Replacement Commands


esxcfg-nas Option --add <name> -a <name> ESXCLI Command storage nfs add Description AddanewNASfilesystemtotheESXihost. YoumustspecifythehostnameorIPaddressofthe NFSvolumetoadd,thesharenameontheremote system,andthevolumenametousefortheNFS mount. storage nfs remove --volume-name=<NAS_volume_name> RemoveanexistingNFSvolumefromtheESXihost. ThiscommandunmountstheNASfilesystemand removesitfromthelistofknownfilesystems. ListallknownNASfilesystemswiththeirmount name,sharename,andhostname.Indicatethe mountstatusforeachfilesystem. AddorremoveaspecifiedNAShost(notESXihost). Usedwithotheroptions. AddthenewNFSfilesystemwithread-onlyaccess. AddorremoveaspecifiedNAShost(notESXihost. Usedwithotheroptions.

--delete <name> -d <name>

--list -l --host <n_host> -o <n_host> --readonly -y --share <share> -s <share>

storage nfs list

storage nfs add --host storage nfs add --readonly storage nfs add --share=<share>

ESXCLIalsoincludescommandstomountandunmounttheNASfilesystem. esxcfg-nics Theesxcfg-nicscommandmanagesphysicalNICs(uplinkadapters)usedbyanESXihost.InvSphere5.0, equivalentESXCLIcommandsareavailable. Table 18. esxcfg-nics Replacement Commands


esxcfg-nics Option --auto -a --duplex [full|half] <nic> -d [full|half] <nic> --list -l --speed <speed> <nic> -s <speed> <nic> ESXCLI Command network nic set --auto network nic set --duplex Description Setthespecifiednetworkadaptertoautonegotiateitsspeedand duplexsettings. Settheduplexvalueatwhichagivennetworkadaptershouldrun toeitherfull(transmitdatainbothdirectionsatthesametime)or half(transmitdatainonedirectionatatime). Listinformationaboutallthenetworkadapters.Usenetwork nic get <adapter>tolistinformationaboutonespecificadapter,for exampleesxcli network nic get -n vmnic0 Setthespeedatwhichagivennetworkadaptershouldrun.Valid valuesforspeedare10,100,1000,or10000.

network nic list network nic get <adapter> network nic set --speed=<long>

esxcfg-rescan Theesxcfg-rescancommandrescansthestorageconfiguration.InvSphere5.0,equivalentESXCLI commandsareavailable. Table 19. esxcfg-rescan Replacement Commands


esxcfg-rescan Option -a|--add -d|--delete <vmhba#> ESXCLI Command storage core adapter rescan --type=add storage core adapter rescan --type=delete --adapter <vmhba#> Description Scanforaddeddevices. Scanremovingdeaddevices

VMware, Inc.

23

Command-Line Management in vSphere 5.0 for Service Console Users

Table 19. esxcfg-rescan Replacement Commands (Continued)


esxcfg-rescan Option -A|--all ESXCLI Command storage core adapter rescan Description Scanalladapters.Bydefault,thecommand scansalladapters.Youcanspecifyindividual adaptersbyusingthe--adapteroption. Scanexistingpathsandupdatetheirstate.

-u|--update <vmhba#>

storage core adapter rescan --type=update --adapter <vmhba#>

Inaddition,ESXCLIsupportsseveralotherrescancommand.Runesxcli storage core adapter rescan --help. esxcfg-vmknic Theesxcfg-vmkniccommandadds,deletes,andmodifiesVMkernelnetworkinterfaces.InvSphere5.0, equivalentESXCLIcommandsareavailable. Table 20. esxcfg-vmknic Replacement Commands
esxcfg- option --add --ip<address> --netmask <netmask> <port-group-name> --delete <nic_name> --disable -D ESXCLI Command network ip interface add Description AddaVMkernelNICtothesystem. Whenthecommandcompletes successfully,thenewlyaddedVMkernel NICisenabled. RemoveaVMkernelNIC. TheESXCLIcommandenablesordisables thespecifiedVMkernelNIC.

network ip interface remove network ip interface set --interface-name=<NIC> --enabled=[true|false] Notsupported. Notsupported. network ip interface ipv4 set --interface-name=<NIC> network ip interface ipv6 set --enable-dhcpv6 network ip interface ipv6 address [list|add|remove]

--dvs-name <dvs> -s --dvport_id <port_id> --enable --enable-ipv6 -6 [true | false]

SetandenablethespecifiedVMkernel NICifitisdisabled. EnableIPv6forthenextboot;managethe IPv6address.

--ip <address> -i <address>

network ip interface ipv4 set --interface-name=<NIC> network ip interface ipv6 set --interface-name=<NIC>

TheIPaddresstobeusedforthe VMkernelNIC. IfyousetastaticIPv4address,youmust specifythe--netmaskoptioninsame command. ListVMkernelnetworkinterfaces. ListIPv4addressesassignedtothe system. ListIPv6addressesassignedtothe system.

--list -l

network ip interface list network ip interface ipv4 list network ip interface ipv6 list

--mtu <mtu>

network ip interface set --interface-name=<NIC> --mtu=<long> network ip interface ipv4 set --interface=<NIC> --netmask=<netmask> network ip interface ipv4 set --interface=<NIC> --netmask=<netmask>

MTUfortheinterfacebeingcreated.Used atthetop-levelipnamespace,notinside theipv4oripv6namespace. IPnetmask(X.X.X.X)tobeusedforthe VMkernelNIC.SettinganIPnetmask requiresthatthe--interfaceoptionbe giveninsamecommand.

--netmask <netmask> -n

VMware, Inc.

24

Command-Line Management in vSphere 5.0 for Service Console Users

Table 20. esxcfg-vmknic Replacement Commands (Continued)


esxcfg- option --peerdns -p ESXCLI Command network ip interface ipv4 set --interface=<NIC> --peer-dns=[true|false] network ip interface ipv6 set --interface=<NIC> --peer-dns=[true|false] --portgroup <port_group> --unset-ip -U Notneeded. Notneeded. Description SetpeerDNS.Ifset,thesystemusesthe hostname,IPaddressanddomain returnedbyDHCP.ValidonlyforDHCP.

esxcfg-volume Theesxcfg-volumecommandmanagesLVMsnapshotorreplicavolumes.InvSphere5.0,equivalentESXCLI commandsareavailableintheesxcli storage filesystemandintheesxcli storage vmfsnamespaces. Table 21. esxcfg-volume Replacement Commands
esxcfg-volume Option --list -l --mount -m --persistent -M --resignature <VMFS-UUID|label> --umount -u <VMFS-UUID|label> ESXCLI Command storage vmfs snapshot list storage vmfs snapshot mount storage vmfs snapshot resignature storage vmfs snapshot unmount Description ListunresolvedsnapshotLUNsorreplicasofVMFSvolumes. MountasnapshotorreplicaofaVMFSvolume.Usethe --nopersistoptiontomountthevolumenon-persistently. Resignatureasnapshotorreplicavolume. DisconnectandunmountanexistingVMFSorNASvolume. Thecommanddoesnotdeletetheconfigurationforthe volume,butremovesthevolumefromthelistofmounted volumesandhaltsallI/Oornetworktrafficforthisvolume.

esxcfg-vswitch Theesxcfg-vswitchcommandmanagesvirtualswitches.InvSphere5.0,equivalentESXCLIcommandsare available. Table 22. esxcfg-vswitch Replacement Commands


esxcfg-vswitch Option --add | -a <switch_name> --add-pg | -A <portgroup> <vswitch_name> --add-dvp-uplink | -P --add-pg-uplink | -M --check | -c <vswitch_name> ESXCLI Command network vswitch standard add network vswitch standard portgroup add portgroup-name=<string> vswitch-name=<string> Notsupported. esxcli network vswitch standard portgroup policy failover set --active-uplinks=vmnic1,vmnic6,vminic7 network vswitch standard list Description Addanewvirtualswitch. Addaportgrouptothespecifiedvirtual switch. Addanuplinkadaptertoadistributed virtualport(DVP). Updatethelistofactiveuplinksforthe portgroup.Thiscommandfailssilently iftheuplinkadapterdoesnotexist. Checkwhetheravirtualswitchexists. Print1iftheswitchexistsandprint0 otherwise.Usethevirtualswitchname, e.g.vSwitch0orvSwitch1,tospecifythe virtualswitch. Checkwhetherthespecifiedportgroup existsornot.

--check-pg | -C <port_group> <vswitch_name>

network vswitch standard portgroup list

VMware, Inc.

25

Command-Line Management in vSphere 5.0 for Service Console Users

Table 22. esxcfg-vswitch Replacement Commands (Continued)


esxcfg-vswitch Option --delete | -d <vswitch_name> ESXCLI Command network vswitch standard remove --vswitch-name=<vswitch> Description Removeavirtualswitch.Runningthe commandwiththisoptionfailsifany portsonthevirtualswitchareinuseby VMkernelnetworksorvirtualmachines. Removeaportgroupfromthevirtual switch.Runningthecommandwiththis optionfailsiftheportgroupisinuse,for example,byavirtualmachineora VMkernelnetwork.

--del-pg | -D <port_group> <vswitch_name>

network vswitch standard portgroup remove --vswitch-name=<vswitch> --portgroup-name=<portgroup>

--del-dvp-uplink | -Q <adapter_name> --dvp <DVPort_id> <dvswitch_name> --del-pg-uplink | -N <adapter_name> <port_group> <dvswitch_name> --dvp | -V

ESXCLIdoesnotsupportdistributedswitches. UsethevSphereClienttoconfiguredistributed switches. network vswitch standard portgroup policy failover set --active-uplinks=vmnic1,vmnic6,vminic7 ESXCLIdoesnotsupportdistributedswitches. UsethevSphereClienttoconfiguredistributed switches. network vswitch standard listincludes CDPinformation. network vswitch standard uplink add --uplink --vswitch PrintthecurrentCDP(CiscoDiscovery Protocol)settingforthisvirtualswitch (validforvSphere4.0andlater). Addanuplinkadapter(physicalNIC)to avirtualswitch.Runningthecommand withthisoptionattachesanewunused physicalnetworkadaptertoavirtual switch. Listallvirtualswitchesandtheirport groups. SettheMTU(maximumtransmission unit)ofthevirtualswitch.Thisoption affectsallphysicalNICsassignedtothe virtualswitch. Providethenameoftheportgroupfor the--vlanoption.SpecifyALLtoset VLANIDsonallportgroupsofavirtual switch. SettheCDPstatusforagivenvirtual switch(validforvSphere4.0andlater). Toset,specifydown,listen,advertise, orboth. Removeanuplinkadapterfromavirtual switch.Anuplinkadaptercorresponds toaphysicalEthernetadaptertowhich thevirtualswitchisconnected.Ifyou removethelastuplinkadapter,youlose physicalnetworkconnectivityforthat switch. Updatethelistofactiveuplinksforthe portgroup.

--get-cdp | -b <vswitch_name> --link | -L <physical_nic> <vswitch_name>

--list | -l --mtu | -m <vswitch_name>

network vswitch standard list network vswitch standard set --mtu=<long>

--pg | -p <port_group>

network vswitch standard portgroup set --vlan-id=<long>

--set-cdp | -B <vswitch_name> [down | listen | advertise | both] --unlink | -U <physical_nic> <vswitch_name>

network vswitch standard set --cpd-status=<string>

network vswitch standard uplink remove --uplink=<uplink> --vswitch=<vswitch>

If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com VMware, Inc. 3401 Hillview Ave., Palo Alto, CA 94304 www.vmware.com Copyright 2010, 2011 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. Item: EN-000544-00

26

Command-Line Management in vSphere 5.0 for Service Console Users

Table 22. esxcfg-vswitch Replacement Commands (Continued)


esxcfg-vswitch Option --vlan | -v --pg <port_group> ESXCLI Command network vswitch standard portgroup set --portgroup-name=<str> --vlan-id=<long> Description SettheVLANIDforaspecificportgroup ofavirtualswitch.Settingtheoptionto0 disablestheVLANforthisportgroup.If youspecifythisoption,youmustalso specifythe--portgroupoption. Explicitlyspecifythemaximumnumber ofactiveuplinks. Atanytime,thereisoneportgroupNIC array,andacorrespondingsetofactive uplinks.Forexample,assumethe portgroupnicarrayis[vmnic1,vmnic0, vmnic3,vmnic5,vmnic6,vmnic7]and active-uplinksissettothreeuplinks (vmnic1,vmnic0,vmnic3),andtherest arestandbyuplinks.Ifyousettheactive uplinkswithnewset[vmnic3,vmnic5], thoseuplinksoverridetheoldset.The NICarraychangesto[vmnic3,vmnic5, vmnic6,vmnic7]andmax-active becomes2.

-X --set-maxactive

network vswitch standard portgroup policy failover set --active-uplinks=vmnic1,vmnic6,vminic7

esxtop TheesxtopcommandisavailableandsupportedintheESXiShell.SearchthevSphereDocumentationCenter, orseethevSphereResourceManagementdocumentation. esxupdate TheesxupdatecommandallowsyoutomanageESX4.0andlatersystems.Usethecommandsintheesxcli softwarenamespacetoinstall,update,remove,ordisplayindividualVIBs(softwarepackages).Use commandsintheesxcli software sourcesnamespacetoquerydepotcontentsforVIBsandimageprofiles. AnimageprofiledefinesanESXiimageandconsistsofVIBs. IMPORTANTTheupdateprocessinthevSphere5.0environmenthasbeensimplifiedanddifferssignificantly fromtheprocessinvSphere4.1.Severalcommandoptionsdonothavedirectequivalents.SeetheUpgrade Guide. Table 23. esxupdate Replacement Commands
esxupdate Command query info ESXCLI Command esxcli software vib list vSphere5.0doesnotsupportbulletins.Instead, youupdateyoursystemwithindividualVIBsor imageprofiles.SeetheUpgradedocumentation. esxcli software vib get --vibname=<str> esxcli software profile get update esxcli software vib update esxcli software profile update esxcli software vib install esxcli software profile install remove esxcli software vib remove TheupdatecommandupdatesVIBpackages butdoesnotinstallnewVIBs. TheinstallcommandinstallsVIBpackages fromaURLordepot.Thecommandinstalls, upgrades,ordowngradesVIBs. RemoveselectedVIBsfromthehost. Description ListallinstalledVIBpackages. DisplayinformationononeormoreVIBs.

VMware, Inc.

27

Command-Line Management in vSphere 5.0 for Service Console Users

Table 23. esxupdate Replacement Commands (Continued)


esxupdate Command stage scan ESXCLI Command Nolongernecessary. Nolongernecessary. Runesxcli software sources profile to queryforimageprofilesinadepot. Runesxcli software sources vibtodisplay informationaboutVIBURLsandfiles. Description

vmkfstools vmkfstoolsissupportedintheESXiShellandasavCLIcommand.SomedifferencesexistbetweentheESXi Shellvmkfstoolscommandandthevmkfstools.plvCLIcommand. NoequivalentESXCLIcommandexists.Someofthevmkfstoolsfunctionalityissupportedbyesxcli filesystem vmfs. vmware-cmd Thevmware-cmdcommandisincludedinthevCLIpackage,butisnotavailableintheESXiShell. vm-support Thevm-supportcommandisavailableintheESXiShell.Thevm-supportcommandisnotincludedinthe vCLIpackage. IMPORTANTThevSphereClientnowsupportsalloptionstovm-support.IfyoucannotusethevSphere ClienttoaccessyourESXisystem,youcanusethevm-supportcommand.

VMware, Inc.

28