6.5

Table Of Contents
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 vCLI Host Management Commands,” on
page 19 in place of <conn_options>.
n
Log in to a session on the current software iSCSI or dependent hardware iSCSI conguration at the
adapter level.
esxcli <conn_options> iscsi session add --adapter=<adapter_name>
The following example applies custom values.
esxcli --config /host-config-file iscsi session add --adapter=vmhba36
n
Log in to a session on the current software iSCSI or dependent hardware iSCSI conguration at the
target level.
esxcli <conn_options> iscsi session add --name=<target> --adapter=<adapter_name>
The following example applies custom values.
esxcli --config /host-config-file iscsi session add -name=iqn.xxx --adapter=vmhba36
n
Add duplicate sessions with target and session IDs in current software iSCSI or dependent hardware
iSCSI conguration.
esxcli <conn_options> iscsi session add --name=<iqn.xxxx> --isid=<session_id> --
adapter=<iscsi_adapter>
iqn.xxxx is the target IQN, which you can determine by listing all sessions. session_id is 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
Removing iSCSI Sessions
You can use esxcli iscsi session to remove iSCSI sessions.
Specify one of the options listed in “Connection Options for vCLI Host Management Commands,” on
page 19 in place of <conn_options>.
n
Remove sessions from the current software iSCSI or dependent hardware iSCSI conguration at the
adapter level.
esxcli <conn_options> iscsi session remove --adapter=<iscsi_adapter>
The following example applies custom values.
esxcli iscsi session remove --adapter=vmhba36
n
Remove sessions from the current software iSCSI or dependent hardware iSCSI conguration at the
target level.
esxcli <conn_options> iscsi session remove --name=<iqn> --adapter=<iscsi_adapter>
The following example applies custom values.
esxcli <conn_options> iscsi session remove --name=iqn.xxx --adapter=vmhba38
Chapter 5 Managing iSCSI Storage
VMware, Inc. 99