6.0

VMware, Inc. 13
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
YouarepromptedforausernameandpasswordfortheESXihost.
Retrieving Networking Information
LinuxcommandsforretrievingnetworkinginformationarenotincludedintheESXiShell.Youcaninstead
useESXCLIcommands.
OnESXi5,ifconfiginformationistheinformationfortheVMkernelNICthatattachestotheManagement
Networkportgroup.YoucanretrievethatinformationbyusingESXCLIcommands.
esxcli network ip interface list
esxcli network ip interface ipv4 get -i vmk<X>
esxcli network ip interface ipv6 get -n vmk<X>
esxcli network ip interface 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
Adding Third-Party Extensions to Hosts
TheprocessofaddingpatchesissimplifiedinESXi5.Allpatchesandthird-partyextensionscanbemade
availableasVIBpackages.WhenaVMwarepartnerreleasesathird-partyextensionasaVIBpackage,the
partnercanmakethepackageavailableasaZIPdepot(offlinedepot).
1 DownloadtheZIPdepot
toyourESXisystembutdonotunpackit.
2Runesxcli software vibtoaddthepackagetoyoursystem.
3 RebootyourESXisystem
Rebootisalwaysrecommended.Somepatchesdonotrequirereboot.
TheVIBsystemrefreshesthehostdaemonafteryourebootyoursystem.IftheVIBrequiresanexceptionto
thefirewallrules,rebootingalsoupdatesthefirewallruleset.
Youcaninsteaduseafirewallconfigurationfiletospecifyportrulesforhostservicesyouwanttoenablefor
theextension.
vSphereSecuritydocumentationdiscusseshowtoadd,apply,andrefreshafirewallrulesetandliststheesxcli
network firewallcommands.The
ESXi5ruleset.xmlformatisthesameasinESX/ESXi4.x,buthastwo
additionaltags,enabledandrequired.ThefirewallonESXi5.0andonESXi5.1stillsupportstheoldformat.
vSphereUpgradedocumentationdiscussesusingesxcli software sourcesandesxcli software vibto
exploreandinstallpatchesandextensions.
Insomesituations,
youmightusevSphereUpdateManagerinsteadoftheesxclicommandtoinstall
third-partyextensions.Theextensionvendorprovidesinformationontheinstallorupgradeprocess.
Reference to Replacements for Service Console Commands
Table 4listscommonESX/ESXi4.xserviceconsolecommandsandcorrespondingESXi5shellcommands.
ThelinksintheCommandcolumnofthetablepointtomoredetailedinformationforeachcommand,with
correspondingESXCLIcommandsforeachoptionwhereavailable.ClickthelinkintheMoreInformation
columnforatable
withdetailedinformationaboutthatcommand.
I
MPORTANTThisdocumentdoesnotpresentacompletelistofESXCLIcommands.Thefocusisonreplacing
existingserviceconsolecommands.SeethevSphereCommandLineInterfaceReferenceforacompletelistof
commands.