Use the vCLI command to display iSCSI sessions between an iSCSI adapter and a storage system.

In the procedure, --server=server_name specifies the target server. The specified target server prompts you for a user name and password. Other connection options, such as a configuration file or session file, are supported. For a list of connection options, see Getting Started with vSphere Command-Line Interfaces.

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.

To list iSCSI sessions, run the following command:

esxcli --server=server_name iscsi session list

The command takes these options:




The iSCSI adapter name, for example, vmhba34.


The iSCSI session identifier.


The iSCSI target name, for example, iqn.X.