6.5.1

Table Of Contents
Procedure
1 To define a new claim rule, run the following command:
esxcli --server=server_name storage core claimrule add
The command takes the following options:
Option Description
-A|--adapter=<str>
Indicate the adapter of the paths.
-u|--autoassign
The system auto assigns a rule ID.
-C|--channel=<long>
Indicate the channel of the paths.
-c|--claimrule-class=<str>
Indicate the claim rule class.
Valid values are: MP, Filter, VAAI.
-d|--device=<str>
Indicate the device UID.
-D|--driver=<str>
Indicate the driver of the paths.
-f|--force
Force claim rules to ignore validity checks and install the rule anyway.
--if-unset=<str>
Run this command if this advanced user variable is not set to 1.
-i|--iqn=<str>
Indicate the iSCSI Qualified Name for the target.
-L|--lun=<long>
Indicate the LUN of the paths.
-M|--model=<str>
Indicate the model of the paths.
-P|--plugin=<str>
Indicate which PSA plugin. (required)
-r|--rule=<long>
Indicate the rule ID.
-T|--target=<long>
Indicate the target of the paths.
-R|--transport=<str>
Indicate the transport of the paths.
Valid values are: block, fc, iscsi, iscsivendor, ide, sas, sata, usb,
parallel, unknown.
-t|--type=<str>
Indicate which type of matching is used for claim/unclaim or claimrule.
Valid values are: vendor, location, driver, transport, device, target.
(required)
-V|--vendor=<str>
Indicate the vendor of the paths.
--wwnn=<str>
Indicate the World-Wide Node Number for the target.
--wwpn=<str>
Indicate the World-Wide Port Number for the target.
2 To load the new claim rule into your system, run the following command:
esxcli --server=server_name storage core claimrule load
This command loads all newly created multipathing claim rules from your system's configuration file.
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 --server=server_name storage core claimrule add -r 500 -t vendor -V NewVend
-M NewMod -P NMP
vSphere Storage
VMware, Inc. 218