Share via


WT_Session class

Represents a session from the initiator to the target.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

class WT_Session
{
  uint16        TSIH;
  uint64        ISID;
  uint32        SessionType;
  string        HostName;
  string        InitiatorIQN;
  WT_Connection Connections[];
  string        HostTargetIQN;
  boolean       AllowInitialR2T;
  boolean       AllowImmediateData;
  uint32        MaxFirstDataBurstLength;
  uint32        MaxDataBurstLength;
  boolean       IsDataSequenceInOrder;
  boolean       IsDataPduInOrder;
  uint32        MaxConnections;
  uint32        DefaultTime2Wait;
  uint32        DefaultTime2Retain;
  uint32        CurrentConnections;
  uint32        MaxOutstandingR2T;
  uint32        ErrorRecoveryLevel;
};

Members

The WT_Session class has these types of members:

Properties

The WT_Session class has these properties.

AllowImmediateData

Data type: boolean

Access type: Read-only

Indicates whether immediate data is allowed.

AllowInitialR2T

Data type: boolean

Access type: Read-only

Indicates whether initial R2T is allowed.

Connections

Data type: WT_Connection array

Access type: Read-only

List of connections in this session. Currently, there is only one connection per session.

CurrentConnections

Data type: uint32

Access type: Read-only

Current number of connections.

DefaultTime2Retain

Data type: uint32

Access type: Read-only

Maximum time, in seconds, after an initial wait (Time2Wait), before which an active task reassignment is still possible after an unexpected connection termination or a connection reset.

DefaultTime2Wait

Data type: uint32

Access type: Read-only

Minimum time, in seconds, to wait before attempting an explicit or implicit logout or an active task reassignment after an unexpected connection termination or a connection reset.

ErrorRecoveryLevel

Data type: uint32

Access type: Read-only

Error recovery level.

HostName

Data type: string

Access type: Read-only

The name of the iSCSI target that is servicing this session. If this is a discovery session, this property contains an empty string.

HostTargetIQN

Data type: string

Access type: Read-only

The iSCSI Qualified Name of the iSCSI target that is servicing this session.

InitiatorIQN

Data type: string

Access type: Read-only

The initiator iSCSI Qualified Name.

IsDataPduInOrder

Data type: boolean

Access type: Read-only

Indicates whether data PDUs within sequences must be at continuously increasing addresses.

IsDataSequenceInOrder

Data type: boolean

Access type: Read-only

ISID

Data type: uint64

Access type: Read-only

Initiator session identifier.

MaxConnections

Data type: uint32

Access type: Read-only

Maximum number of connections allowed within the session.

MaxDataBurstLength

Data type: uint32

Access type: Read-only

Maximum SCSI data payload in bytes in a Data-In or a solicited Data-Out iSCSI sequence.

MaxFirstDataBurstLength

Data type: uint32

Access type: Read-only

Maximum amount of unsolicited data, in bytes, that an initiator may send during the execution of a single SCSI command.

MaxOutstandingR2T

Data type: uint32

Access type: Read-only

Maximum number of outstanding R2T requests that are supported.

SessionType

Data type: uint32

Access type: Read-only

Qualifiers: Values (Discovery, Normal), ValueMap (0, 1)

The type of session.

TSIH

Data type: uint16

Access type: Read-only

Qualifiers: Key

Unique target identifier of the session.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Wmi
MOF
WmiWtProvider.mof
DLL
WtWmiProv.dll