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.
7 (Optional) Set the authentication information for mutual CHAP by running vicfg-iscsi -A again with
the -b option and a dierent authentication user name and password.
For <level>, specify chapProhibited or chapRequired.
n
chapProhibited – The host does not use CHAP authentication. If authentication is enabled, specify
chapProhibited to disable it.
n
chapRequired – The host requires successful CHAP authentication. The connection fails if CHAP
negotiation fails. You can set this value for mutual CHAP only if CHAP is set to chapRequired.
For <auth_method>, CHAP is the only valid value.
I You are responsible for making sure that CHAP is set before you set mutual CHAP, and
for using compatible levels for CHAP and mutual CHAP.
8 (Optional) Set iSCSI parameters by running vicfg-iscsi -W.
9 After setup is complete, run vicfg-rescan to rescan all storage devices.
Set Up Dependent Hardware iSCSI with vicfg-iscsi
Dependent hardware iSCSI setup requires a number of high-level tasks.
You should be familiar with the corresponding command for each task. You can refer to the relevant
documentation for each command. Specify one of the options listed in “Connection Options for vCLI Host
Management Commands,” on page 19 in place of <conn_options>.
Prerequisites
n
Verify that you are familiar with iSCSI authentication. See “Enabling iSCSI Authentication,” on
page 94.
n
Verify that you are familiar with CHAP. See “Seing iSCSI CHAP,” on page 72.
Procedure
1 Determine the HBA type and retrieve the HBA ID.
vicfg-iscsi <conn_options> --adapter --list
2 (Optional) Set the iSCSI name and alias.
vicfg-iscsi <conn_options> -I -n <iscsi_name> <adapter_name>
vicfg-iscsi <conn_options> --iscsiname - -name <iscsi_name> <adapter_name>
vicfg-iscsi <conn_options> -I -a <alias_name> <adapter_name>
vicfg-iscsi <conn_options> --iscsiname --alias <alias_name> <adapter_name>
vSphere Command-Line Interface Concepts and Examples
86 VMware, Inc.