6100 ADCCP Programming Manual

(5) FETCH STATISTICS
Requests and Responses
069225 Tandem Computers Incorporated 6–13
(5) FETCH STATISTICS The FETCH STATISTICS request and response are used to retrieve statistics associated
with the functioning of the line.
Request The FETCH STATISTICS request retrieves statistics pertaining to line quality, frames
and error counts, and signal levels. You usually use this request after receiving an
asynchronous (72) LINE QUALITY message or when you are troubleshooting a line.
Note This request provides more information than either the (72) LINE QUALITY response or the CMI STATUS
command.
The reset option is useful for measuring occurrences over a period of time. Reset
statistics at the beginning of the period and observe them at the end.
For a list of the status codes and their definitions, see “Status Code Definitions” at the
end of this section.
The request buffer format is:
Function := 5
Modifier := 0 to retrieve the statistics block
1 to retrieve the statistics block and
reset counters to 0
Request ID := A unique value from 1 through 32767,
determined by the application
Text Out := 0
Text In := 26
Text None
Response The FETCH STATISTICS response is the expected answer to the FETCH STATISTICS
request. It contains a block of statistics. Each statistic applies to the whole line rather
than to any specific station. Each statistic is a 16-bit integer value. Statistics are reset
only when the ADCCP module is downloaded; thereafter, counts are accumulated and
allowed to wrap around after 64K counts.
For a list of the status codes and their definitions, see “Status Code Definitions” at the
end of this section.
The response buffer format is:
Response := 5
Status := 0 if the text field contains the statistics
block, otherwise a code for the error that
occurred
Request ID := The same as in the request
Text Out := 0