Listing iSCSI
Sessions
You can use
esxcli iscsi
session
to list sessions.
The following example scenario
uses the available commands. Run
esxcli iscsi session --help
and each command with
--help
for reference information. The example uses a
configuration file to log in to the host. Specify one of the options listed in
Connection Options for vCLI Host Management Commands
in place of
<conn_options>
.
The
4.x ESXCLI
commands for managing iSCSI sessions are not supported against
5.0 hosts.
- List a software iSCSI session at the adapter level.esxcli <conn_options> iscsi session list --adapter=<iscsi_adapter>
- List a software iSCSI session at the target level.esxcli <conn_options> iscsi session list --name=<target> --adapter=<iscsi_adapter>