6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
92 VMware, Inc.
ThefollowingexamplesillustrateaddingSATPrules.Specifyoneoftheoptionslistedin“ConnectionOptions
forvCLIHostManagementCommands”onpage 18inplaceof<conn_options>.
AddaSATPrulethatspecifiesthatdiskswithvendorstringVMWAREandmodelstringVirtualshouldbe
addedtoVMW_SATP_LOCAL.
esxcli <conn_options> storage nmp satp rule add --satp="VMW_SATP_LOCAL" --vendor="VMWARE"
--model="Virtual" --description="VMware virtual disk"
AddaSATPrulethatspecifiesthatdiskswiththedriverstringsomedrivershouldbeaddedto
VMW_SATP_LOCAL.
esxcli <conn_options> storage nmp satp rule add --satp="VMW_SATP_LOCAL"
--driver="somedriver"
AddarulethatspecifiesthatallstoragedeviceswithvendorstringABCandamodelnamethatstartswith
120shoulduseVMW_SATP_DEFAULT_AA(VMW_SATP_DEFAULT_AAisanexample).
esxcli <conn_options> storage nmp satp rule add --satp VMW_SATP_DEFAULT_AA --vendor="ABC"
--model="^120*
Removing SATP Rules
Theesxcli storage nmp satp rule removecommandremovesanexistingSATPrule.Theoptionsyou
specifydefinetheruletoremove.Theoptionslistedfor“A d d i n g SATPRules”onpage 91aresupported.
Option Description
--driver
-D
DriverstringtosetwhenaddingtheSATPclaimrule.
--device
-d
DevicetosetwhenaddingSATPclaimrules.Device rulesaremutuallyexclusivewith
vendor/modelanddriverrules.
--force
-f
Forceclaimrulestoignorevaliditychecksandinstalltheruleevenifchecksfail.
--model
-M
Modelstringtoset
whenaddingtheSATPclaimrule.Canbethemodelnameorapattern
^mod*,whichmatchesalldevicesthatstartwithmod.Thatis,thepatternsuccessfullymatches
mod1andmodz,butnotmymod1.
Thecommandsupportsthestart/end(^)andwildcard(*)functionalitybutnootherregular
expressions.
--transport
-R
TransportstringtosetwhenaddingtheSATPclaimrule.DescribesthetypeofstorageHBA,
forexample,iscsiorfc.
--vendor
-V
VendorstringtosetwhenaddingtheSATPclaimrule.
--satp
-s
SATPforwhichtheruleisadded.
--claim-option
-c
Claimoptionstringtosetwhenaddingthe
SATPclaimrule.
--description
-e
DescriptionstringtosetwhenaddingtheSATPclaimrule.
--option
-o
OptionstringtosetwhenaddingtheSATPclaimrule.Surroundtheoptionstringindouble
quotes,anduseaspace,notacomma,whenspecifyingmorethanoneoption.
“enable_local enable_ssd”.
--psp
-P
DefaultPSPfor
theSATPclaimrule.
--psp-option
-O
PSPoptionsfortheSATPclaimrule.
--type
-t
SettheclaimtypewhenaddingaSATPclaimrule.