6.0

Table Of Contents
VMware, Inc. 63
Chapter 5 Managing iSCSI Storage
Returning Authentication to Default Inheritance
ThevaluesofiSCSIauthenticationsettingsassociatedwithadynamicdiscoveryaddressorastaticdiscovery
targetareinheritedfromthecorrespondingsettingsoftheparent.Forthedynamicdiscoveryaddress,the
parentistheadapter.Forthestatictarget,theparentistheadapterordiscoveryaddress.
IfyouusethevSphereWebClienttomodifyauthenticationsettings,youmustdeselecttheInheritfrom
Parentcheckboxbeforeyoucanmakeachangetothediscoveryaddressordiscoverytarget.
Ifyouusevicfg-iscsi,thevalueyousetoverridestheinheritedvalue.
Ifyouuseesxcli iscsicommands,thevalueyousetoverridestheinheritedvalue.YoucansetCHAP
attheselevels:
esxcli iscsi adapter auth chap [get|set]
esxcli iscsi adapter discovery sendtarget auth chap [get|set]
esxcli iscsi adapter target portal auth chap [get|set]
Inheritanceisrelevantonlyifyouwanttoreturnadynamicdiscoveryaddressorastaticdiscoverytargetto
itsinheritedvalue.Inthatcase,useoneofthefollowingcommands:
Dynamicdiscovery:esxcli iscsi adapter discovery sendtarget auth chap set --inherit
Staticdiscovery:esxcli iscsi adapter target portal auth chap set --inherit.
Command Syntax for esxcli iscsi and vicfg-iscsi
InvSphere5.0andlater,youcanmanageiSCSIstoragebyusingeitheresxcli iscsicommandsor
vicfg-iscsioptions.SeethevSphereCommandLineInterfaceReference.“esxcliiscsiCommandSyntax”on
page 63and“vicfgiscsiCommandSyntax”onpage 65provideanoverview.
esxcli iscsi Command Syntax
Theesxcli iscsicommandincludesanumberofnestednamespaces.Thefollowingtableillustratesthe
namespacehierarchy.Commandsateachlevelareincludedinbold.Manynamespacesincludeboth
commandsandnamespaces.
N
OTEYoucansettargetlevelCHAPauthenticationpropertiestobeinheritedfromthesendtargetleveland
setsendtargetlevelCHAPauthenticationpropertiestobeinheritedfromtheadapterlevel.Resetting
adapterlevelpropertiesisnotsupported.
Table 5-2. esxcli iscsi Command Overview
adapter[get|list|set]auth chap[set|get]
discovery
[rediscover]
sendtarget
[add|list|remove]
auth chap[get|set]
param[get|set]
statictarget
[add|list|remove]
statusget
target[list]portal[list]auth chap[get|set]
param[get|set]
capabilitiesget
firmware[get|set]
param[get|set]