6.0.1

Table Of Contents
You can also establish a session to a specic target port. This can be useful if your host connects to a single-
port storage system that, by default, presents only one target port to your initiator, but can redirect
additional sessions to a dierent target port. Establishing a new session between your iSCSI initiator and
another target port creates an additional path to the storage system.
The following considerations apply to iSCSI session management:
n
Some storage systems do not support multiple sessions from the same initiator name or endpoint.
Aempts to create multiple sessions to such targets can result in unpredictable behavior of your iSCSI
environment.
n
Storage vendors can provide automatic session managers. Using the automatic session manages to add
or delete sessions, does not guarantee lasting results and can interfere with the storage performance.
Review iSCSI Sessions
Use the vCLI command to display iSCSI sessions between an iSCSI adapter and a storage system.
In the procedure, --server=server_name species the target server. The specied target server prompts you
for a user name and password. Other connection options, such as a conguration le or session le, are
supported. For a list of connection options, see Geing Started with vSphere Command-Line Interfaces.
Prerequisites
Install vCLI or deploy the vSphere Management Assistant (vMA) virtual machine. See Geing Started with
vSphere Command-Line Interfaces. For troubleshooting, run esxcli commands in the ESXi Shell.
Procedure
u
To list iSCSI sessions, run the following command:
esxcli --server=server_name iscsi session list
The command takes these options:
Option Description
-A|--adapter=str
The iSCSI adapter name, for example, vmhba34.
-s|--isid=str
The iSCSI session identier.
-n|--name=str
The iSCSI target name, for example, iqn.X.
Add iSCSI Sessions
Use the vCLI to add an iSCSI session for a target you specify or to duplicate an existing session. By
duplicating sessions, you increase the default number of sessions and create additional paths to storage
systems.
In the procedure, --server=server_name species the target server. The specied target server prompts you
for a user name and password. Other connection options, such as a conguration le or session le, are
supported. For a list of connection options, see Geing Started with vSphere Command-Line Interfaces.
Prerequisites
Install vCLI or deploy the vSphere Management Assistant (vMA) virtual machine. See Geing Started with
vSphere Command-Line Interfaces. For troubleshooting, run esxcli commands in the ESXi Shell.
vSphere Storage
104 VMware, Inc.