The esxcli storage core claimrule run command runs path claiming rules.

You can run this command to apply claim rules that are loaded. See Load and Apply Path Claim Rules.

You can also use the esxcli storage core claimrule run command for troubleshooting and boot time configuration.

Options Description

--adapter <adapter>

-A <adapter>

If --type is location, name of the HBA for the paths to run the claim rules on. To run claim rules on paths from all adapters, omit this option.

--channel <channel>

-C <channel>

If --type is location, value of the SCSI channel number for the paths to run the claim rules on. To run claim rules on paths with any channel number, omit this option.

--claimrule-class

-c

Claim rule class to use in this operation.

--device

-d

Device UID to use for this operation.

--lun <lun>

-L <lun>

If --type is location, value of the SCSI LUN for the paths to run claim rules on. To run claim rules on paths with any LUN, omit this option.

--path <path_UID>

-p <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.

--target <target>

-T <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.

--type <location|path|all>

-t <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.

--wait

-w

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.