Previous Page Contents Page Next Page

3.102 QUERY_CS_TRACE

This verb returns information about the current tracing options for data sent between computers on the SNAP-IX LAN. For more information about tracing options, see the SNAP-IX Administration Guide.

This verb may be issued to a running node, or to a Solaris client computer on which the SNAP-IX software is running. To obtain a target handle for the client in order to issue this verb, use the CONNECT_NODE verb without specifying a node name; the NOF application must be running on the client.

On Windows clients, client-server tracing is controlled by options in the Windows Program Registry. For more information, see the SNAP-IX Administration Guide.

3.102.1 VCB Structure

typedef struct query_cs_trace
{
   AP_UINT16        opcode;            /* verb operation code                */
   unsigned char    reserv2;           /* reserved                           */
   unsigned char    format;            /* reserved                           */
   AP_UINT16        primary_rc;        /* primary return code                */
   AP_UINT32        secondary_rc;      /* secondary return code              */
   unsigned char    dest_sys[64];      /* node to which messages are traced  */
   unsigned char    reserv4[4];        /* reserved                           */
   AP_UINT16        trace_flags;       /* trace flags                        */
   AP_UINT16        trace_direction;   /* direction (send/rcv/both) to trace */
   unsigned char    reserv3[8];        /* Reserved                           */
} QUERY_CS_TRACE;

3.102.2 Supplied Parameters

The application supplies the following parameters:

opcode

AP_QUERY_CS_TRACE

dest_sys

The server name for which tracing options are being queried. This is an ASCII string, padded on the right with spaces if the name is shorter than 64 characters.

To query tracing options on messages flowing between the computer to which this verb is issued (identified by the target_handle parameter on the NOF API call) and one other server on the LAN, specify the name of the other server here.

To query the default tracing options (set by a SET_CS_TRACE verb with no destination system name specified), set this parameter to 64 ASCII space characters.

3.102.3 Returned Parameters: Successful Execution

If the verb executes successfully, SNAP-IX returns the following parameters:

primary_rc

AP_OK

secondary_rc

Not used.

trace_flags

The types of tracing currently active. For more information about these trace types, see SET_CS_TRACE.

If no tracing is active, or if tracing of all types is active, this is one of the following values:

AP_NO_TRACE

No tracing.

AP_ALL_TRACE

Tracing of all types.

If tracing is being used on specific interfaces, this parameter is set to one or more values from the list below, combined using a logical OR operation.

AP_CS_ADMIN_MSG

Internal messages relating to client-server topology

AP_CS_DATAGRAM

Datagram messages

AP_CS_DATA

Data messages

trace_direction

Specifies the direction or directions in which tracing is active. This parameter is not used if trace_flags is set to AP_NO_TRACE. Possible values are:

AP_CS_SEND

Messages flowing from the target computer to the computer defined by dest_sys are traced.

AP_CS_RECEIVE

Messages flowing from the computer defined by dest_sys to the target computer are traced.

AP_CS_BOTH

Messages flowing in both directions are traced.

3.102.4 Returned Parameters: Parameter Check

If the verb does not execute because of a parameter error, SNAP-IX returns the following parameters:

primary_rc

AP_PARAMETER_CHECK

secondary_rc

Possible values are:

AP_NAME_NOT_FOUND

The server specified by the dest_sys parameter did not exist or was not started.

AP_LOCAL_SYSTEM

The server specified by the dest_sys parameter is the same as the target node to which this verb was issued.

AP_INVALID_TARGET

The verb was issued on a standalone server. This verb can only be issued on a client-server system.

Common Return Codes lists further secondary return codes associated with AP_PARAMETER_CHECK, which are common to all NOF verbs.

3.102.5 Returned Parameters: Other Conditions

Common Return Codes lists further combinations of primary and secondary return codes that are common to all NOF verbs.

Previous Page Contents Page Top of Page Next page