Logging in to iSCSI
Sessions
You can use
esxcli iscsi
session
to log in to a session.
Specify one of the options
listed in
Connection Options for ESXCLI Host Management Commands
in place of
<conn_options>
.
- Log in to a session on the current software iSCSI or dependent hardware iSCSI configuration at the adapter level.
The following example applies custom values.esxcli <conn_options> iscsi session add --adapter=<adapter_name>esxcli --config /host-config-file iscsi session add --adapter=vmhba36 - Log in to a session on the current software iSCSI or dependent hardware iSCSI configuration at the target level.
The following example applies custom values.esxcli <conn_options> iscsi session add --name=<target> --adapter=<adapter_name>esxcli --config /host-config-file iscsi session add -name=iqn.xxx --adapter=vmhba36 - Add duplicate sessions with target and session IDs in current software iSCSI or dependent hardware iSCSI configuration.esxcli <conn_options> iscsi session add --name=<iqn.xxxx> --isid=<session_id> --adapter=<iscsi_adapter>iqn.xxxxis the target IQN, which you can determine by listing all sessions.session_idis the session's iSCSI ID. The following example applies custom values.esxcli --config /host-config-file iscsi session add -name=iqn.xxx --isid='00:02:3d:00:00:01' --adapter=vmhba36