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

Prerequisites

Install ESXCLI. See Getting Started with ESXCLI. For troubleshooting, run esxcli commands in the ESXi Shell.

Procedure

  • 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.