6.0
Table Of Contents
- Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
VMware, Inc. 27
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
esxcfg-vswitch
Theesxcfg-vswitchcommandmanagesvirtualswitches.InvSphere5,equivalentESXCLIcommandsare
available.
--resignature
<VMFS-UUID|label>
storage vmfs snapshot
resignature
Resignatureasnapshotorreplicavolume.
--umount -u
<VMFS-UUID|label>
storage vmfs snapshot
unmount
DisconnectandunmountanexistingVMFSorNASvolume.
Thecommanddoesnotdeletetheconfigurationforthe
volume,butremovesthevolumefromthelistofmounted
volumesandhaltsallI/Oornetworktrafficforthisvolume.
Table 24. esxcfg-vswitch Replacement Commands
esxcfg-vswitch Option ESXCLI Command Description
--add | -a
<switch_name>
network vswitch standard add Addanewvirtualswitch.
--add-pg | -A
<portgroup>
<vswitch_name>
network vswitch standard portgroup add
portgroup-name=<string>
vswitch-name=<string>
Addaportgrouptothespecifiedvirtual
switch.
--add-dvp-uplink |
-P
Notsupported. Addanuplinkadaptertoadistributed
virtualport(DVP).
--add-pg-uplink |
-M
esxcli network vswitch standard
portgroup policy failover set
--active-uplinks=vmnic1,vmnic6,vminic7
Updatethelistofactiveuplinksforthe
portgroup.Thiscommandfailssilently
iftheuplinkadapterdoes
notexist.
--check | -c
<vswitch_name>
network vswitch standard list Checkwhetheravirtualswitchexists.
Print1iftheswitchexistsandprint0
otherwise.Usethevirtualswitchname,
e.g.vSwitch0orvSwitch1,tospecifythe
virtualswitch.
--check-pg | -C
<port_group>
<vswitch_name>
network vswitch standard portgroup list Checkwhetherthespecifiedportgroup
existsornot.
--delete | -d
<vswitch_name>
network vswitch standard remove
--vswitch-name=<vswitch>
Removeavirtualswitch.Running
the
commandwiththisoptionfailsifany
portsonthevirtualswitchareinuseby
VMkernelnetworksorvirtualmachines.
--del-pg | -D
<port_group>
<vswitch_name>
network vswitch standard portgroup
remove --vswitch-name=<vswitch>
--portgroup-name=<portgroup>
Removeaportgroupfromthevirtual
switch.Runningthecommandwiththis
optionfailsiftheportgroupisinuse,for
example,bya
virtualmachineora
VMkernelnetwork.
--del-dvp-uplink |
-Q <adapter_name>
--dvp <DVPort_id>
<dvswitch_name>
ESXCLIdoesnotsupportdistributedswitches.
UsethevSphereClienttoconfiguredistributed
switches.
--del-pg-uplink |
-N <adapter_name>
<port_group>
<dvswitch_name>
network vswitch standard portgroup
policy failover set
--active-uplinks=vmnic1,vmnic6,vminic7
Updatethelistofactiveuplinksforthe
portgroup.
--dvp | -V ESXCLIdoesnotsupportdistributedswitches.
UsethevSphereClienttoconfiguredistributed
switches.
--get-cdp | -b
<vswitch_name>
network vswitch standard list
includes
CDPinformation.
PrintthecurrentCDP(CiscoDiscovery
Protocol)settingforthisvirtualswitch
(validforvSphere4.0andlater).
Table 23. esxcfg-volume Replacement Commands (Continued)
esxcfg-volume Option ESXCLI Command Description










