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.
N Mutual CHAP is not supported for independent hardware iSCSI storage.
6 (Optional) Set iSCSI parameters by running vicfg-iscsi -W.
7 After setup is complete, run vicfg-rescan to rescan all storage devices.
Listing and Setting iSCSI Options
You can list and set iSCSI options with ESXCLI or with vicfg-iscsi.
You can also manage parameters. See “Listing and Seing iSCSI Parameters,” on page 90.
Listing iSCSI Options with ESXCLI
You can use esxcli iscsi information retrieval commands to list external HBA properties, information
about targets, and LUNs.
You can use the following esxcli iscsi options to list iSCSI parameters. Specify one of the options listed in
“Connection Options for vCLI Host Management Commands,” on page 19 in place of <conn_options>.
n
Run esxcli iscsi adapter firmware to list or upload the rmware for the iSCSI adapter.
esxcli <conn_options> iscsi adapter firmware get --adapter=<adapter_name>
esxcli <conn_options> iscsi adapter firmware set --file=<firmware_file_path>
The system returns information about the vendor, model, description, and serial number of the HBA.
n
Run commands in the esxcli iscsi adapter target name space.
n
esxcli iscsi adapter target portal lists and sets authentication and portal parameters.
n
esxcli iscsi adapter target list lists LUN information.
Setting MTU with ESXCLI
You can change MTU seings by using ESXCLI.
If you want to change the MTU used for your iSCSI storage, you must make the change in two places.
n
Run esxcli network vswitch standard set to change the MTU of the virtual switch.
n
Run esxcli network ip interface set to change the MTU of the network interface.
Listing and Setting iSCSI Options with vicfg-iscsi
You can use vicfg-iscsi information retrieval options to list external HBA properties, information about
targets, and LUNs.
You can use the following vicfg-iscsi options to list iSCSI parameters. Specify one of the options listed in
“Connection Options for vCLI Host Management Commands,” on page 19 in place of <conn_options>.
n
Run vicfg-iscsi -P|--phba to list external (vendor-specic) properties of an iSCSI adapter.
vicfg-iscsi <conn_options> -P -l <adapter_name>
vicfg-iscsi <conn_options> --phba --list <adapter_name>
Chapter 5 Managing iSCSI Storage
VMware, Inc. 89