6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
16 VMware, Inc.
Commands with an esxcfg Prefix
Tofacilitateeasymigrationifshellscriptsthatuseesxcfg‐commands,thevCLIpackageincludesacopyof
eachvicfg-commandthatusesanesxcfg-prefix.
Table 14listsallvCLIvicfg-commandsforwhichavCLIcommandwithanesxcfgprefixisavailable.
ESXCLI Overview
ThissectiongivesanoverviewofESXCLIcommandsandhowtousethem.SeeGettingStartedwithvSphere
CommandLineInterfacesfordetails.
ESXCLI Commands Available on Different ESXi Hosts
WhenyourunanESXCLIvCLIcommand,youmustknowthecommandssupportedonthetargethost.For
example,ifyouruncommandsagainstESXi5.xhosts,ESXCLI5.xcommandsaresupported.Ifyourun
commandsagainstESXi6.0hosts,ESXCLI6.0commandsaresupported.
Somecommandsorcommandoutputsare
determinedbythehosttype.Inaddition,VMwarepartnersmight
developcustomESXCLIcommandsthatyoucanrunonhostswherethepartnerVIBhasbeeninstalled.
Runesxcli --server <target> --helpforalistofnamespacessupportedonthetarget.Youcandrill
downintothenamespacesforadditionalhelp.
I
MPORTANTVMwarerecommendsthatyouuseESXCLIorthevCLIcommandswiththevicfgprefix.
Commandswiththeesxcfgprefixareavailablemainlyforcompatibilityreasonsandarenowobsolete.
vCLIesxcfg-commandsareequivalenttovicfg-commands,butnotcompletelyequivalenttothe
deprecatedesxcfg- serviceconsolecommands.
Table 1-4. Commands with an esxcfg Prefix
Command with vicfg prefix Command with esxcfg prefix
vicfg-advcfg esxcfg-advcfg
vicfg-cfgbackup esxcfg-cfgbackup
vicfg-dns esxcfg-dns
vicfg-dumppart esxcfg-dumppart
vicfg-module esxcfg-module
vicfg-mpath esxcfg-mpath
vicfg-nas esxcfg-nas
vicfg-nics esxcfg-nics
vicfg-ntp esxcfg-ntp
vicfg-rescan esxcfg-rescan
vicfg-route esxcfg-route
vicfg-scsidevs esxcfg-scsidevs
vicfg-snmp esxcfg-snmp
vicfg-syslog esxcfg-syslog
vicfg-vmknic esxcfg-vmknic
vicfg-volume esxcfg-volume
vicfg-vswitch esxcfg-vswitch
IMPORTANTESXCLIonESX4.xhostsdoesnotsupporttargetingavCenterServersystem.Youcantherefore
notrunESXCLIcommandswith--serverpointingtoavCenterServersystemevenifyouinstallvCLI5.0.