6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
46 VMware, Inc.
esxcli <conn_options> storage core path list
Limitthedisplaytoonlyaspecifiedpathordevice.
esxcli <conn_options> storage core path list --path <path>
esxcli <conn_options> storage core path list --device <device>
ListthestatisticsfortheSCSIpathsinthesystem.Youcanlistallpathsorlimitthedisplaytoaspecific
path.
esxcli <conn_options> storage core path stats get
esxcli <conn_options> storage core path stats get --path <path>
Listdetailedinformationforthepathsforthedevicespecifiedwith--device.
esxcli <conn_options> storage core path list -d <naa.xxxxxx>
Listalladapters.
esxcli <conn_options> storage core adapter list
Rescanalladapters.
esxcli <conn_options> storage core adapter rescan
Listing Path Information with vicfg-mpath
Youcanrunvicfg-mpathtolistinformationaboutFibreChanneloriSCSILUNs.
Youcandisplayinformationaboutpathsbyrunningvicfg-mpathwithoneofthefollowingoptions.Specify
oneoftheoptionslistedin“ConnectionOptionsforvCLIHostManagementCommands”onpage 18inplace
of<conn_options>.
Listalldeviceswiththeircorrespondingpaths,stateofthepath,adaptertype,andotherinformation.
vicfg-mpath <conn_options> --list-paths
Displayashortlistingofallpaths.
vicfg-mpath <conn_options> --list-compact
Listallpathswithadapteranddevicemappings.
vicfg-mpath <conn_options> --list-map
ListpathsanddetailedinformationbyspecifyingthepathUID(longpath).ThepathUIDisthefirstitem
inthevicfg-mpath --listdisplay.
vicfg-mpath <conn_options> --list
-P sas.5001c231c79c4a00-sas.1221000001000000-naa.5000c5000289c61b
Listpathsanddetailedinformationbyspecifyingthepathruntimename.
vicfg-mpath <conn_options> -l -P vmhba32:C0:T0:L0
Thereturninformationincludestheruntimename,device,devicedisplayname,adapter,adapter
identifier,targetidentifier,plugin,state,transport,andadapterandtargettransportdetails.
Listdetailedinformationforthepathsforthedevicespecifiedwith--device.
vicfg-mpath <conn_options> -l -d mpx.vmhba32:C0:T1:L0
vicfg-mpath <conn_options> --list --device naa.60060...
Changing the State of a Path
YoucanchangethestateofapathwithESXCLIorwithvicfg-mpath.
I
MPORTANTUseindustrystandarddevicenames,withformateui.xxxornaa.xxxtoensureconsistency.
DonotuseVMLLUNnamesunlessdevicenamesarenotavailable.
NamesofvirtualmachineHBAsarenotguaranteedtobevalidacrossreboots.