6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
88 VMware, Inc.
esxcli storage nmp device list
ThelistcommandliststhedevicescontrolledbyVMwareNMPandshowstheSATPandPSPinformation
associatedwitheachdevice.ToshowthepathsclaimedbyNMP,runesxcli storage nmp path listto
listinformationforalldevices,orforjustonedevicewiththe--deviceoption.
esxcli storage nmp device set
ThesetcommandsetsthePathSelectionPolicy(PSP)foradevicetooneofthepoliciesloadedonthesystem.
AnydevicecanusethePSPassignedtotheSATPhandlingthatdevice,oryoucanrunesxcli storage nmp
device set --device naa.xxx --psp <psp>tospecificallyoverridethePSPassignedtothedevice.
IfadevicedoesnothaveaspecificPSPset,italwaysusesthePSPassignedtotheSATP.IfthedefaultPSP
fortheSATPchanges,thePSPassignedtothedevicechangesonlyafterrebootorafteradeviceis
reclaimed.Adeviceisreclaimedwhenyouunclaimall
pathsforthedeviceandreclaimthepaths.
Ifyouuseesxcli storage nmp device settooverridetheSATPsdefaultPSPwithaspecificPSP,the
PSPchangesimmediatelyandremainstheuserdefinedPSPacrossreboots.AchangeintheSATP’sPSP
hasnoeffect.
Usethe--defaultoptiontoreturnthedevicetousingtheSATP’sPSP.
Tosetthe
pathpolicyforthespecifieddevicetoVMW_PSP_FIXED,runthefollowingcommand:
esxcli <conn_options> storage nmp device set --device naa.xxx --psp VMW_PSP_FIXED
Listing Paths with esxcli storage nmp path
UsethepathoptiontolistpathsclaimedbyNMP.Bydefault,thecommanddisplaysinformationaboutall
pathsonalldevices.Youcanfilterinthefollowingways:
Onlyshowpathstoasingedevice(esxcli storage nmp path list --device <device>).
Onlyshowinformationforasinglepath(esxcli storage nmp path list --path=<path>).
Tolistdevices,callesxcli storage nmp device list.
Managing Path Selection Policy Plugins with esxcli storage nmp psp
Useesxcli storage nmp psptomanageVMwarepathselectionpolicypluginsincludedwiththeVMware
NMPpluginandtomanagethirdpartyPSPs.
Options Description
--device <device>
-d <device>
Filterstheoutputofthecommandtoshowinformationaboutasingledevice.Defaultisall
devices.
Options Description
--default
-E
SetsthePSPbacktothedefaultfortheSATPassignedtothisdevice.
--device <device>
-d <device>
DevicetosetthePSPfor.
--psp <PSP>
-P <PSP>
PSPtoassigntothespecifieddevice.Callesxcli storage nmp psp list
todisplayall
currentlyavailablePSPs.SeeTable 41,“SupportedPathPolicies,”onpage 48.
SeevSphereStorageforadiscussionofpathpolicies.
IMPORTANTWhenusedwiththirdpartyPSPs,thesyntaxdependsonthethirdpartyPSPimplementation.