The device option performs operations on devices currently claimed by the VMware NMP plugin.
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.
The set command sets the Path Selection Policy (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 specifically override the PSP assigned to the device.
Use the --default option to return the device to using the SATP’s PSP.
Use the path option to list paths claimed by NMP. By default, the command displays information about all paths on all devices. You can filter in the following ways:
Use esxcli storage nmp psp to manage VMware path selection policy plugins included with the VMware NMP plugin and to manage third-party PSPs.
The esxcli storage nmp psp generic deviceconfig get and
esxcli storage nmp psp generic pathconfig get command retrieves PSP configuration parameters. The type of PSP determines which command to use.
The esxcli storage nmp psp list command shows the list of Path Selection Plugins on the system and a brief description of each plugin.
The esxcli storage nmp psp generic deviceconfig set and
esxcli storage nmp psp generic pathconfig set commands support future third-party PSA expansion. The
setconfig command sets PSP configuration parameters for those third-party extensions.
Use esxcli storage nmp roundrobin setconfig for other path policy configuration. See
Customizing Round Robin Setup.
You can run esxcli storage nmp psp generic deviceconfig set --device=<device> to specify PSP information for a device, and
esxcli storage nmp psp generic pathconfig set --path=<path> to specify PSP information for a path. For each command, use
--config to set the specified configuration string.
The fixed option gets and sets the preferred path policy for NMP devices configured to use
VMW_PSP_FIXED.
The esxcli storage nmp fixed deviceconfig get command retrieves the preferred path on a specified device that is using NMP and the
VMW_PSP_FIXED PSP.
The esxcli storage nmp fixed deviceconfig set command sets the preferred path on a specified device that is using NMP and the
VMW_PSP_FIXED path policy.
To set the preferred path for the specified device to vmhba3:C0:T5:L3, run the following command. Specify one of the options listed in
Connection Options in place of
<conn_options>.
The esxcli storage nmp psp roundrobin commands sets round robin path options on a device controlled by the
VMW_PSP_RR PSP. Specify one of the options listed in
Connection Options in place of
<conn_options>.
Sets the device specified by - -device to switch to the next path each time 12345 bytes have been sent along the current path.
Sets the device specified by - -device to switch after 4200 I/O operations have been performed on a path.
The esxcli storage nmp psp roundrobin deviceconfig get command retrieves path selection settings for a device that is using the
roundrobin PSP. You can specify the device to retrieve the information for.
The esxcli storage nmp psp roundrobin deviceconfig set command specifies under which conditions a device that is using the
VMW_PSP_RR PSP changes to a different path. You can use
- -bytes or
- -iops to specify when the path should change.
The esxcli storage nmp satp commands manage SATPs. You can use these commands to perform the following tasks:
The esxcli storage nmp satp list command lists the SATPs that are currently available to the NMP system and displays information about those SATPs. This command supports no options and displays information about these SATPs.
The rule list command lists the claim rules for SATPs.
Claim rules specify that a storage device that uses a certain driver or transport or has a certain vendor or model should use a certain SATP. The esxcli storage nmp satp rule add command adds a rule that performs such a mapping to the list of claim rules. The options you specify define the rule. For example, the following command specifies that if a path has vendor
VMWARE and model
Virtual, the PSA assigns it to the
VMW_SATP_LOCAL SATP.
The esxcli storage nmp satp rule remove command removes an existing SATP rule. The options you specify define the rule to remove. The options listed for
Adding SATP Rules are supported.
The esxcli storage nmp satp generic deviceconfig get and
esxcli storage nmp satp generic pathconfig get commands retrieve per-device or per-path SATP configuration parameters. You cannot retrieve paths or devices for all SATPs, you must retrieve the information one path or one device at a time.
The esxcli storage nmp satp generic deviceconfig set and
esxcli storage nmp satp generic pathconfig set commands set configuration parameters for SATPs that are loaded into the system, if they support device configuration. You can set per-path or per-device SATP configuration parameters.
Run esxcli storage nmp device set --default --device=<device> to set the PSP for the specified device back to the default for the assigned SATP for this device.