6.7

Table Of Contents
Procedure
u
To list iSCSI sessions, run the following command:
esxcli 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 identifier.
-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.
Prerequisites
Install vCLI or deploy the vSphere Management Assistant (vMA) virtual machine. See Getting Started with
vSphere Command-Line Interfaces. For troubleshooting, run esxcli commands in the ESXi Shell.
Procedure
u
To add or duplicate an iSCSI session, run the followign command:
esxcli iscsi session add
The command takes these options:
Option Description
-A|--adapter=str The iSCSI adapter name, for example, vmhba34. This option is required.
-s|--isid=str The ISID of a session to duplicate. You can find it by listing all session.
-n|--name=str The iSCSI target name, for example, iqn.X.
What to do next
Rescan the iSCSI adapter.
Remove iSCSI Sessions
Use the vCLI command to remove an iSCSI session between an iSCSI adapter and a target.
Prerequisites
Install vCLI or deploy the vSphere Management Assistant (vMA) virtual machine. See Getting Started with
vSphere Command-Line Interfaces. For troubleshooting, run esxcli commands in the ESXi Shell.
vSphere Storage
VMware, Inc. 108