6.0

VMware, Inc. 24
Command-Line Management in vSphere 5 and vSphere 6 for Service Console Users
esxcfg-nas
Theesxcfg-nascommandmanipulatesNASfilesystemsassociatedwithESXisystems.InvSphere5,
equivalentESXCLIcommandsareavailable.
ESXCLIalsoincludescommandstomountandunmounttheNASfilesystem.
esxcfg-nics
Theesxcfg-nicscommandmanagesphysicalNICs(uplinkadapters)usedbyanESXihost.InvSphere5,
equivalentESXCLIcommandsare
available.
Table 18. esxcfg-mpath Replacement Commands
esxcfg-mpath Option ESXCLI Command Description
-l --list <path> |
<device>
storage core path list
storage core device list
Listdetailedinformationforallpathsonthesystem
orforthespecifiedpathordevice.
-L --list-compact Notsupported
-m --list-map storage core device list FordevicescurrentlyregisteredwiththePSA,listthe
filtersattachedtothem.(Notanexactequivalent)
-b --list-paths storage core path list Listalldeviceswiththeircorrespondingpaths,orlist
pathsforthespecified
device.
-G --list-plugins storage core plugin list Listallmultipathingpluginsloadedintothesystem.
Ataminimum,thiscommandreturnsNMP(Native
MultipathingPlugin).Ifothermultipathingplugins
havebeenloaded,theyarelistedaswell.
-s --state storage core path setstate
--path=<path>
--state=[active|off]
SetthestateofagivenLUNpathtoeitheractiveor
off.Thisoptionrequiresthatthe--path
optionsisset
andspecifieseitherthepathUIDorthepathruntime
name.
Ifyouarechangingapath’sstate,thechange
operationfailsifI/Oisactivewhenthepathsettingis
changed.Reissuethecommand.Youmust
successfullyperformatleastoneI/Ooperationbefore
thechangetakes
effect.
Table 19. esxcfg-nas Replacement Commands
esxcfg-nas Option ESXCLI Command Description
--add <name>
-a <name>
storage nfs add AddanewNASfilesystemtotheESXihost.
YoumustspecifythehostnameorIPaddressofthe
NFSvolumetoadd,thesharenameontheremote
system,andthevolumenametousefortheNFS
mount.
--delete <name>
-d <name>
storage nfs remove
--volume-name=<NAS_volume_name>
RemoveanexistingNFSvolume
fromtheESXihost.
ThiscommandunmountstheNASfilesystemand
removesitfromthelistofknownfilesystems.
--list
-l
storage nfs list ListallknownNASfilesystemswiththeirmount
name,sharename,andhostname.Indicatethe
mountstatusforeachfilesystem.
--host <n_host>
-o <n_host>
storage nfs add --host Addorremovea
specifiedNAShost(notESXihost).
Usedwithotheroptions.
--readonly
-y
storage nfs add --readonly AddthenewNFSfilesystemwithread-onlyaccess.
--share <share>
-s <share>
storage nfs add --share=<share> AddorremoveaspecifiedNAShost(notESXihost.
Usedwithotheroptions.