6.5

Table Of Contents
Device Management with esxcli storage nmp device
The device option performs operations on devices currently claimed by the VMware NMP.
esxcli storage nmp device list
The list command lists the devices controlled by VMware NMP and shows the SATP and PSP information
associated with each device. To show the paths claimed by NMP, run esxcli storage nmp path list to list
information for all devices, or for just one device with the --device option.
Options Description
--device <device>
-d <device>
Filters the output of the command to show information about a single device. Default is all
devices.
esxcli storage nmp device set
The set command sets the PSP for a device to one of the policies loaded on the system.
Any device can use the PSP assigned to the SATP handling that device, or you can run esxcli storage nmp
device set --device naa.xxx --psp <psp> to specically override the PSP assigned to the device.
n
If a device does not have a specic PSP set, it always uses the PSP assigned to the SATP. If the default
PSP for the SATP changes, the PSP assigned to the device changes only after reboot or after a device is
reclaimed. A device is reclaimed when you unclaim all paths for the device and reclaim the paths.
n
If you use esxcli storage nmp device set to override the SATPs default PSP with a specic PSP, the
PSP changes immediately and remains the user-dened PSP across reboots. A change in the SATP's PSP
has no eect.
Use the --default option to return the device to using the SATP's PSP.
Options Description
--default
-E
Sets the PSP back to the default for the SATP assigned to this device.
--device <device>
-d <device>
Device to set the PSP for.
--psp <PSP>
-P <PSP>
PSP to assign to the specied device. Call esxcli storage nmp psp list to display all
currently available PSPs. See “Managing Path Policies,” on page 54.
See vSphere Storage for a discussion of path policies.
To set the path policy for the specied device to VMW_PSP_FIXED, run the following command.
esxcli <conn_options> storage nmp device set --device naa.xxx --psp VMW_PSP_FIXED
Listing Paths with esxcli storage nmp path
You can use the path option to list paths claimed by NMP.
By default, the command displays information about all paths on all devices. You can lter in the following
ways.
n
Only show paths to a singe device.
esxcli storage nmp path list --device <device>
n
Only show information for a single path.
esxcli storage nmp path list --path=<path>
To list devices, call esxcli storage nmp device list.
vSphere Command-Line Interface Concepts and Examples
102 VMware, Inc.