Skip to main content
Element Software
A newer release of this product is available.

ListISCSISessions

Contributors netapp-pcarriga

You can use the ListISCSISessions method to list iSCSI connection information for volumes in the cluster.

Parameters

This method has no input parameters.

Return value

This method has the following return value:

Name Description Type

sessions

Information about each iSCSI session.

Request example

Requests for this method are similar to the following example:

{
   "method": "ListISCSISessions",
   "params": {},
   "id" : 1
}

Response example

This method returns a response similar to the following example:

 {
  "id": 1,
  "result": {
    "sessions": [
      {
        "accountID": 1,
        "accountName": "account1",
        "authentication": {
            "authMethod": "CHAP",
            "chapAlgorithm": "SHA3_256",
            "chapUsername": "iqn.1994-05.com."redhat:1cf11f3eed3",
            "direction": "two-way"
        },
        "createTime": "2022-10-03T22:02:49.121723Z",
        "driveID": 23,
        "driveIDs": [23],
        "initiator": null,
        "initiatorIP": "10.1.1.1:37138",
        "initiatorName": "iqn.2010-01.net.solidfire.eng:c",
        "initiatorPortName": "iqn.2010-01.net.solidfire.eng:c,i,0x23d860000",
        "initiatorSessionID": 9622126592,
        "msSinceLastIscsiPDU": 243,
        "msSinceLastScsiCommand": 141535021,
        "nodeID": 3,
        "serviceID": 6,
        "sessionID": 25769804943,
        "targetIP": "10.1.1.2:3260",
        "targetName": "iqn.2010-01.com.solidfire:a7sd.3",
        "targetPortName": "iqn.2010-01.com.solidfire:a7sd.3,t,0x1",
        "virtualNetworkID": 0,
        "volumeID": 3,
        "volumeInstance": 140327214758656
      }
     ...
    ]
  }
}

New since version

9.6