High Availability Monitors Version A.03.02 Release Notes
NOF API Verbs (QUERY Verbs)
QUERY_STATISTICS
Chapter 4 925
QUERY_STATISTICS
QUERY_STATISTICS returns statistics on the usage of an LS or port.
The type of information returned depends on the DLC type. The QLLC
software does not support link statistics; do not issue this verb for a
QLLC port or LS.
For SDLC, the verb returns either statistics (counts of events such as
particular frame types sent or received) or operational information
(details of parameters currently being used), for either an LS or a port.
For Token Ring, Ethernet, or FDDI, the verb returns statistics
information for an LS.
This verb must be issued to a running node.
VCB Structure
typedef struct query_statistics
{
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 name[8]; /* LS name or port name */
unsigned char stats_type; /* LS or port statistics? */
unsigned char table_type; /* statistics table requested */
unsigned char reset_stats; /* reset the statistics? */
unsigned char dlc_type; /* type of DLC */
unsigned char statistics[256]; /* current statistics */
unsigned char reserva[20]; /* reserved */
} QUERY_STATISTICS;
LS statistics for SDLC:
typedef struct sdl_ls_stats_table
{
V0_MUX_INFO mux_info; /* streams config info */
AP_UINT32 index; /* index of port that owns LS */
unsigned int address; /* poll address of secondary link station*/
unsigned char reserv[3]; /* reserved */
AP_UINT32 blus_in; /* frames received from adjacent link */
/* station */