6.0

VMware, Inc. 15
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
ESXCLI Command Syntax
InESXi4.x,allESXCLIcommandsmustfollowthesamesyntax.
esxcli <conn_options> <namespace> <app> <cmd> [cmd_options]
InESXi5.0andESXi5.1,theESXCLIcommandsyntaxismoreflexible.Eachcommandcanuseanarbitrary
numberofnamespaces.Differentcommandshaveadifferentnumberofelements.
esxcli <conn_options> <namespace> [namespace, ...] <cmd> [cmd_options]
Updates to ESXCLI 4.x Commands
Thefollowingtablelistsequivalentcommandsforesxclicorestoragecommands.
vmware-cmd NotavailableinESXiShell.AvailableinvCLI.Inmanycases,
VMwarePowerCLIcmdletsperformthesametasksas
vmware-cmd.
Usevmware-cmd--help
forinformation.
Yes
vm-support Createsatararchivecontainingdebugginginformationfor
theserver.
ThiscommandisintendedforusewithVMwareSupport.No
equivalentvCLIcommandexists.
Usevm-support --help
formoreinformation.
No
Table 4. Replacements for Service Console Commands (Continued)
Service Console
Command ESXi 5 Replacement More Information
Deprecated
ESXi Shell
IMPORTANTYoumustupdateallESXCLIcommandsexplicitly;noscriptsareavailableforthetask.Starting
withvSphere5.0,mostmanagementcommandswillbeESXCLIcommands.
Table 5. esxcli 4.x corestorage namespace
ESXCLI in ESXi 4.x ESXCLI in ESXi 5.x
corestorage claiming reclaim --<option>
corestorage claiming unclaim --<option>
storage core claiming reclaim --<option>
storage core 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>
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 core 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