Solaris Bandwidth Manager 1.6 Developer Guide

The C Statistics API

The Solaris Bandwidth Manager C Statistics API retrieves information about the configuration of Solaris Bandwidth Manager and the interfaces that it manages. It can also detect events that occur at the module level, and return information about these events. Figure 1-2 shows the way in which the C Statistics API is integrated with an application.

Applications that are developed using the C Statistics API must run on a machine where Solaris Bandwidth Manager is installed. The functions listed in "Device Handling", and "Event Handling" do not require the policy agent to be running. This enables you to run an application that detects when the daemon starts. The other functions return the error BA_NOTRUNNING if the policy agent is not running.

Figure 1-2 Using the C Statistics API

Graphic