6.5

Table Of Contents
The target (-i) and name (-n) option determine what the command applies to.
Option Result
-i and -n
Command applies to per-target CHAP for static targets.
Only -i
Command applies to the discovery address.
Neither -i nor -n
Command applies to per-adapter CHAP.
If special characters are in the <name>=<value> sequence, for example, if you add a space, you must surround
the sequence with double quotes ("<name> = <value>").
Returning Parameters to Default Inheritance with vicfg-iscsi
The values of iSCSI parameters associated with a dynamic discovery address or a static discovery target are
inherited from the corresponding seings of the parent.
For the dynamic discovery address, the parent is the adapter. For the static target, the parent is the adapter
or discovery address.
n
If you use the vSphere Web Client to modify authentication seings, you must deselect the Inherit from
Parent check box before you can make a change to the discovery address or discovery target.
n
If you use vicfg-iscsi, the value you set overrides the inherited value.
Inheritance is relevant only if you want to return a dynamic discovery address or a static discovery target to
its inherited value. In that case, use the --reset <param_name> option, which requires the --name option for
static discovery addresses, but not for dynamic discovery targets.
vicfg-iscsi <conn_options> --parameter --reset <param_name>
--ip <stor_ip_addr | stor_hostname>[:port_num>] <adapter_name>
vicfg-iscsi <conn_options> -W - o <param_name>
-i <stor_ip_addr|stor_hostname>[:port_num>] <adapter_name>
Enabling iSCSI Authentication
You can enable iSCSI authentication by using ESXCLI or vicfg-iscsi.
Enable iSCSI Authentication with ESXCLI
You can use the esxcli iscsi adapter auth commands to enable iSCSI authentication.
For information on iSCSI CHAP, see “Seing iSCSI CHAP,” on page 72.
vSphere Command-Line Interface Concepts and Examples
94 VMware, Inc.