Monitoring connections (LU 6.2 only)

To query the status of the connections that TRS uses:

exec sgw_status connections

This procedure displays the defined connections currently known to TRS and the status of each.

Table 8-2 shows the connection information that returns:

Table 8-2: Description of sgw_status connections results

Field

Description

Con_Number

This number represents the connection being described.

Status

The connection availability, which indicates whether the connection is currently available for use. Valid values are:

  • A (active) – the connection is available.

  • I (inactive) – the connection is not available.

  • D (draining) – the connection is not available.

A connection is considered to be “draining” if you deactivated it while it was in use. It remains in draining status until the request completes, then becomes inactive.

Connection

The name of the SNA connection as defined in the sgw_addcon procedure.

Mode

The name of the mode used with this connection as defined in the sgw_addcon procedure.

Destsys

The name of the transaction processing region accessed by the connection as defined in the sgw_addcon procedure.

Host_Tran

The name of the mainframe transaction being invoked as defined in the sgw_addrpc procedure. If a transaction is not being invoked, this field value is Null.

Client_Number

The client currently using this connection. This is the same number used to identify the login of each client in the result of the sgw_status clients command. If the client is not using a connection, this field is blank.