HP-UX IPQoS A.01.00 Programmer's Guide (October 2005)
Using the HP-UX IPQoS API
Statistics
Chapter 234
Statistics
The HP-UX IPQoS API offers functions to obtain and reset statistics on a policy and on one or
all of its associated filters. Functions related to statistics must be called from
IPQOS_SESSION_STATS type sessions.
A function IpqosGetPolicyStats() retrieves the counters for the statistics. Once it is called,
functions that get specific counter information can be called (for example,
IpqosGetPolicyStatsByteCount()).
From a high-level (pseudo-code) perspective the technique to obtain HP-UX IPQoS statistics
for all policies and filters is as follows:
—Start an IPQOS_SESSION_STATS session. This will read the current HP-UX IPQoS
configuration.
— Traverse the list of adapters and the policy list of each adapter in the configuration.
—Call IpqosGetPolicyStats() for the policy.
— Get the specific statistics counters for the policy using the appropriate functions.
— Traverse the list of filters for the policy.
— Get the statistics counters for the filters using the appropriate functions.
Repeat for all policies as needed.
Table 2-4 lists the counters maintained by the HP-UX IPQoS kernel module for every active
policy and filter.
Table 2-4 Counters Kept for Statistics
Object Type Counters
Policy Packet Count
Byte Count
Dropped Packet Count
Dropped Byte Count
Filter Packet Count
Byte Count