6.0.1

Table Of Contents
Procedure
u
To add or duplicate an iSCSI session, run the followign command:
esxcli --server=server_name 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 nd 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.
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 remove a session, run the following command:
esxcli --server=server_name iscsi session remove
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 remove. You can nd it by listing all session.
-n|--name=str
The iSCSI target name, for example, iqn.X.
What to do next
Rescan the iSCSI adapter.
Chapter 10 Configuring iSCSI Adapters and Storage
VMware, Inc. 105