HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
QUERY_STATISTICS
3.158.6 Returned Parameters: Other Conditions
Appendix B, Common Return Codes lists further combinations of primary and secondary return codes that are
common to all NOF verbs.
3.159 QUERY_STATISTICS
QUERY_STATISTICS returns statistics on the usage of an LS or port. The QLLC link type does not support link
statistics; do not issue this verb for a QLLC LS or port.
The type of information returned depends on the DLC type:
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.
For Enterprise Extender, the verb returns statistics information for an LS.
This verb must be issued to a running node.
3.159.1 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 */
AP_UINT32 blus_out; /* frames sent to adjacent link station */
AP_UINT32 octets_in; /* bytes received from adjacent link */
/* station */
AP_UINT32 octets_out; /* bytes sent to adjacent link station */
AP_UINT32 polls_out; /* polls sent to adjacent link station */
AP_UINT32 poll_rsps_out; /* polls responded to by adjacent link */
/* station */
AP_UINT32 local_busies; /* number of times local link station has*/
656