Use the vSphere CLI to display iSCSI sessions between an iSCSI adapter and a storage system.

1

To list sessions for an adapter, use esxcli swiscsi session list -d vmhbaXX.

vmhbaXX is the name of your iSCSI adapter.

2

To list sessions for a target, use esxcli swiscsi session list -t iqnXX -d vmhbaXX.

iqnXX is the name of the target the iSCSI adapter connects to.

# esxcli swiscsi session list -t iqn.2001-05.com.equallogic:0-8a0906-cbcde0d02-6a445baadf44ab92-vcli7 -d vmhba36