6.0

VMware, Inc. 25
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
esxcfg-rescan
Theesxcfg-rescancommandrescansthestorageconfiguration.InvSphere5,equivalentESXCLIcommands
areavailable.
Inaddition,ESXCLIsupportsseveralotherrescancommand.Runesxcli storage core adapter rescan
--help.
esxcfg-vmknic
Theesxcfg-vmkniccommandadds,deletes,andmodifiesVMkernelnetworkinterfaces.InvSphere5,
equivalentESXCLIcommandsareavailable.
Table 20. esxcfg-nics Replacement Commands
esxcfg-nics Option ESXCLI Command Description
--auto
-a
network nic set
--auto
Setthespecifiednetworkadaptertoautonegotiateitsspeedand
duplexsettings.
--duplex
[full|half] <nic>
-d [full|half]
<nic>
network nic set
--duplex
Settheduplexvalueatwhichagivennetworkadaptershouldrun
toeitherfull(transmitdatainbothdirectionsatthesametime)or
half(transmitdatainonedirectionatatime).
--list
-l
network nic list
network nic get
<adapter>
Listinformationaboutallthenetworkadapters.Usenetwork nic
get <adapter>tolistinformationaboutonespecificadapter,for
exampleesxcli network nic get -n vmnic0
--speed <speed>
<nic>
-s <speed> <nic>
network nic set
--speed=<long>
Setthespeedatwhichagivennetworkadaptershouldrun.Valid
valuesforspeedare10,100,1000,or10000.
Table 21. esxcfg-rescan Replacement Commands
esxcfg-rescan Option ESXCLI Command Description
-a|--add storage core adapter rescan
--type=add
Scanforaddeddevices.
-d|--delete <vmhba#> storage core adapter rescan
--type=delete --adapter <vmhba#>
Scanremovingdeaddevices
-A|--all storage core adapter rescan Scanalladapters.Bydefault,thecommand
scansalladapters.Youcanspecifyindividual
adaptersbyusingthe--adapteroption.
-u|--update <vmhba#> storage core adapter rescan
--type=update --adapter <vmhba#>
Scanexistingpathsandupdatetheirstate.
Table 22. esxcfg-vmknic Replacement Commands
esxcfg- option ESXCLI Command Description
--add --ip<address>
--netmask <netmask>
<port-group-name>
network ip interface add AddaVMkernelNICtothesystem.
Whenthecommandcompletes
successfully,thenewlyaddedVMkernel
NICisenabled.
--delete <nic_name> network ip interface remove RemoveaVMkernelNIC.
--disable -D network ip interface set
--interface-name=<NIC>
--enabled=[true|false]
TheESXCLIcommandenablesordisables
thespecifiedVMkernelNIC.
--dvs-name <dvs>
-s
Notsupported.
--dvport_id
<port_id>
Notsupported.
--enable network ip interface ipv4 set
--interface-name=<NIC>
SetandenablethespecifiedVMkernel
NICif
itisdisabled.