You can list and set iSCSI parameters for software iSCSI and for dependent hardware iSCSI with ESXCLI or with vicfg-iscsi.
Adapter-level parameters Target-level parameters esxcli iscsi adapter target portal param set --adapter=<vmhba> --key=<key> --value=<value> --address=<address> --name=<iqn.name> Discovery-level parameters esxcli iscsi adapter discovery sendtarget param set --adapter=<vmhba> --key=<key> --value=<value> --address=<address>Settable iSCSI Parameters lists all settable parameters. These parameters are also described in the IETF rfc 3720. You can run esxcli iscsi adapter param get to determine whether a parameter is settable or not.The parameters in Settable iSCSI Parameters apply to software iSCSI and dependent hardware iSCSI.
Increases data integrity. When data digest is enabled, the system performs a checksum over each PDUs data part and verifies using the CRC32C algorithm.Note: Systems that use Intel Nehalem processors offload the iSCSI digest calculations for software iSCSI, thus reducing the impact on performance. Increases data integrity. When header digest is enabled, the system performs a checksum over the header part of each iSCSI Protocol Data Unit (PDU) and verifies using the CRC32C algorithm. Max Outstanding R2T defines the Ready to Transfer (R2T) PDUs that can be in transition before an acknowledgement PDU is received. Maximum amount of unsolicited data an iSCSI initiator can send to the target during the execution of a single SCSI command, in bytes. Time interval, in seconds, between NOP-Out requests sent from your iSCSI initiator to an iSCSI target. The NOP-Out requests serve as the ping mechanism to verify that a connection between the iSCSI initiator and the iSCSI target is active. Amount of time, in seconds, that can lapse before your host receives a NOP-In message. The message is sent by the iSCSI target in response to the NOP-Out request. When the NoopTimeout limit is exceeded, the initiator terminates the current session and starts a new one. Amount of time, in seconds, that can lapse while a session recovery is performed. If the timeout exceeds its limit, the iSCSI initiator terminates the session.
■ Run esxcli iscsi adapter param get to list parameter options for the iSCSI adapter.
■ Run esxcli iscsi adapter discovery sendtarget param get or esxcli iscsi adapter target portal param set to retrieve information about iSCSI parameters and whether they are settable.
■ Run esxcli iscsi adapter discovery sendtarget param get or esxcli iscsi adapter target portal param set to set iSCSI parameter options.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>”).The values of iSCSI parameters associated with a dynamic discovery address or a static discovery target are inherited from the corresponding settings 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.
■ If you use the vSphere Web Client to modify authentication settings, you deselect the Inherit from Parent check box before you can make a change to the discovery address or discovery target.
■ If you use esxcli 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 following command, which requires the - -name option for static discovery addresses, but not for dynamic discovery targets.
■ Dynamic target: esxcli iscsi adapter discovery sendtarget param set
■ Static target: esxcli iscsi adapter target portal param setYou can list and set iSCSI parameters by running vicfg-iscsi -W. Settable iSCSI Parameters lists all settable parameters. These parameters are also described in the IETF rfc 3720. You can also run vicfg-iscsi - -parameter - -list - -details to determine whether a parameter is settable or not.The parameters in Settable iSCSI Parameters apply to software iSCSI and dependent hardware iSCSI.
Increases data integrity. When data digest is enabled, the system performs a checksum over each PDUs data part and verifies using the CRC32C algorithm.Note: Systems that use Intel Nehalem processors offload the iSCSI digest calculations for software iSCSI, thus reducing the impact on performance. Increases data integrity. When header digest is enabled, the system performs a checksum over the header part of each iSCSI Protocol Data Unit (PDU) and verifies using the CRC32C algorithm. Max Outstanding R2T defines the Ready to Transfer (R2T) PDUs that can be in transition before an acknowledgement PDU is received. Maximum amount of unsolicited data an iSCSI initiator can send to the target during the execution of a single SCSI command, in bytes. Time interval, in seconds, between NOP-Out requests sent from your iSCSI initiator to an iSCSI target. The NOP-Out requests serve as the ping mechanism to verify that a connection between the iSCSI initiator and the iSCSI target is active. Amount of time, in seconds, that can lapse before your host receives a NOP-In message. The message is sent by the iSCSI target in response to the NOP-Out request. When the NoopTimeout limit is exceeded, the initiator terminates the current session and starts a new one. Amount of time, in seconds, that can lapse while a session recovery is performed. If the timeout exceeds its limit, the iSCSI initiator terminates the session. You can use the following vicfg-iscsi options to list parameter options. Specify one of the options listed in Connection Options in place of <conn_options>.
■ Run vicfg-iscsi -W -l to list parameter options for the HBA.[-i <stor_ip_addr|stor_hostname> [:<portnum>] [-n <iscsi_name>]] <adapter_name>vicfg-iscsi <conn_options> - -parameter - -list
-i and -n Neither -i nor -n
■ Run vicfg-iscsi -W -l -k to list iSCSI parameters and whether they are settable.vicfg-iscsi <conn_options> - -parameter - -list - -detail[- -ip <stor_ip_addr|stor_hostname>[:<port_num>][- -name <iscsi_name>]] <adapter_name>
■ Run vicfg-iscsi -W -j to set iSCSI parameter options.-i <stor_ip_addr|stor_hostname>[:port_num>][-n <iscsi_name>]] <adapter_name>vicfg-iscsi <conn_options> - -parameter - -set <name>=<value>--ip <stor_ip_addr|stor_hostname>[:port_num>][--name <iscsi_name>]] <adapter_name>
-i and -n Neither -i nor -n 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>”).The values of iSCSI parameters associated with a dynamic discovery address or a static discovery target are inherited from the corresponding settings 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.
■ If you use the vSphere Web Client to modify authentication settings, you deselect the Inherit from Parent check box before you can make a change to the discovery address or discovery target.
■ 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>