6.7

Table Of Contents
Option Description
-p|--path=<path_uid>
If --type is path, this option indicates the unique path identifier (UID) or the
runtime name of a path to run claim rules on.
-T|--target=<target>
If --type is location, value of the SCSI target number for the paths to run claim
rules on. To run claim rules on paths with any target number, omit this option.
-t|--type=<location|path|all>
Type of claim to perform. By default, uses all, which means claim rules run
without restriction to specific paths or SCSI addresses. Valid values are
location, path, and all.
-w|--wait
You can use this option only if you also use --type all.
If the option is included, the claim waits for paths to settle before running the
claim operation. In that case, the system does not start the claiming process until
it is likely that all paths on the system have appeared before starting the claim
process.
After the claiming process has started, the command does not return until device
registration has completed.
If you add or remove paths during the claiming or the discovery process, this
option might not work correctly.
Example: Defining Multipathing Claim Rules
In the following example, you add and load rule # 500. The rule claims all paths with the NewMod model
string and the NewVend vendor string for the NMP plug-in.
# esxcli storage core claimrule add -r 500 -t vendor -V NewVend -M NewMod -P NMP
# esxcli storage core claimrule load
After you run the esxcli storage core claimrule list command, you can see the new claim rule
appearing on the list.
The following output indicates that the claim rule 500 has been loaded into the system and is active.
Rule Class Rule Class Type Plugin Matches
... ... ... ... ... ...
MP 500 runtime vendor NMP vendor=NewVend model=NewMod
MP 500 file vendor NMP vendor=NewVend model=NewMod
Delete Multipathing Claim Rules
Use the esxcli commands to remove a multipathing PSA claim rule from the set of claim rules on the
system.
Prerequisites
Install vCLI or deploy the vSphere Management Assistant (vMA) virtual machine. See Getting Started with
vSphere Command-Line Interfaces. For troubleshooting, run esxcli commands in the ESXi Shell.
vSphere Storage
VMware, Inc. 226