6.5
Table Of Contents
- vSphere Command-Line Interface Concepts and Examples
- Contents
- About This Book
- vSphere CLI Command Overviews
- Introduction
- List of Available Host Management Commands
- Targets and Protocols for vCLI Host Management Commands
- Supported Platforms for vCLI Commands
- Commands with an esxcfg Prefix
- ESXCLI Commands Available on Different ESXi Hosts
- Trust Relationship Requirement for ESXCLI Commands
- Using ESXCLI Output
- Connection Options for vCLI Host Management Commands
- Connection Options for DCLI Commands
- vCLI Host Management Commands and Lockdown Mode
- Managing Hosts
- Managing Files
- Managing Storage
- Introduction to Storage
- Examining LUNs
- Detach a Device and Remove a LUN
- Reattach a Device
- Working with Permanent Device Loss
- Managing Paths
- Managing Path Policies
- Scheduling Queues for Virtual Machine I/O
- Managing NFS/NAS Datastores
- Monitor and Manage FibreChannel SAN Storage
- Monitoring and Managing Virtual SAN Storage
- Monitoring vSphere Flash Read Cache
- Monitoring and Managing Virtual Volumes
- Migrating Virtual Machines with svmotion
- Configuring FCoE Adapters
- Scanning Storage Adapters
- Retrieving SMART Information
- Managing iSCSI Storage
- iSCSI Storage Overview
- Protecting an iSCSI SAN
- Command Syntax for esxcli iscsi and vicfg-iscsi
- iSCSI Storage Setup with ESXCLI
- iSCSI Storage Setup with vicfg-iscsi
- Listing and Setting iSCSI Options
- Listing and Setting iSCSI Parameters
- Enabling iSCSI Authentication
- Set Up Ports for iSCSI Multipathing
- Managing iSCSI Sessions
- Managing Third-Party Storage Arrays
- Managing Users
- Managing Virtual Machines
- Managing vSphere Networking
- Introduction to vSphere Networking
- Retrieving Basic Networking Information
- Troubleshoot a Networking Setup
- Setting Up vSphere Networking with vSphere Standard Switches
- Setting Up Virtual Switches and Associating a Switch with a Network Interface
- Retrieving Information About Virtual Switches
- Adding and Deleting Virtual Switches
- Checking, Adding, and Removing Port Groups
- Managing Uplinks and Port Groups
- Setting the Port Group VLAN ID
- Managing Uplink Adapters
- Adding and Modifying VMkernel Network Interfaces
- Managing VMkernel Network Interfaces with ESXCLI
- Add and Configure an IPv4 VMkernel Network Interface with ESXCLI
- Add and Configure an IPv6 VMkernel Network Interface with ESXCLI
- Managing VMkernel Network Interfaces with vicfg-vmknic
- Add and Configure an IPv4 VMkernel Network Interface with vicfg-vmknic
- Add and Configure an IPv6 VMkernel Network Interface with vicfg-vmknic
- Setting Up vSphere Networking with vSphere Distributed Switch
- Managing Standard Networking Services in the vSphere Environment
- Setting the DNS Configuration
- Manage an NTP Server
- Manage the IP Gateway
- Setting Up IPsec
- Manage the ESXi Firewall
- Monitor VXLAN
- Monitoring ESXi Hosts
- Index
Adding Claim Rules
The esxcli storage core claimrule add command adds a claim rule to the set of claim rules on the system.
You can use this command to add new claim rules or to mask a path using the MASK_PATH claim rule. You
must load the rules after you add them.
Options Description
--adapter <adapter>
-A <adapter>
Adapter of the paths to use. Valid only if --type is location.
--autoassign
-u
Adds a claim rule based on its characteristics. The rule number is not required.
--channel <channel>
-C <channel>
Channel of the paths to use. Valid only if --type is location.
--claimrule-class <cl>
-c <cl>
Claim rule class to use in this operation. You can specify MP (default), Filter, or VAAI.
To congure hardware acceleration for a new array, add two claim rules, one for the
VAAI lter and another for the VAAI plug-in. See vSphere Storage for detailed
instructions.
--driver <driver>
-D <driver>
Driver for the HBA of the paths to use. Valid only if --type is driver.
--force
-f
Force claim rules to ignore validity checks and install the rule.
--lun <lun_number>
-L <lun_number>
LUN of the paths to use. Valid only if --type is location.
--model <model>
-M <model>
Model of the paths to use. Valid only if --type is vendor.
Valid values are values of the Model string from the SCSI inquiry string. Run vicfg-
scsidevs <conn_options> -l on each device to see model string values.
--plugin
-P
PSA plug-in to use. Currently, the values are NMP or MASK_PATH, but third parties can
ship their own PSA plug-ins in the future.
MASK_PATH refers to the plug-in MASK_PATH_PLUGIN. The command adds claim rules for
this plug-in if the user wants to mask the path.
You can add a claim rule that causes the MASK_PATH_PLUGIN to claim the path to mask a
path or LUN from the host. See the vSphere Storage documentation for details.
--rule <rule_ID>
-r <rule_ID>
Rule ID to use. Run esxcli storage core claimrule list to see the rule ID. The
rule ID indicates the order in which the claim rule is to be evaluated. User-dened claim
rules are evaluated in numeric order starting with 101.
--target <target>
-T <target>
Target of the paths to use. Valid only if --type is location.
--transport <transport>
-R <transport>
Transport of the paths to use. Valid only if --type is transport. The following values
are supported.
n
block – block storage
n
fc – FibreChannel
n
iscsivendor — iSCSI
n
iscsi – not currently used
n
ide — IDE storage
n
sas — SAS storage
n
sata — SATA storage
n
usb – USB storage
n
parallel – parallel
n
unknown
Chapter 6 Managing Third-Party Storage Arrays
VMware, Inc. 111