Solaris Bandwidth Manager includes the following examples:
ba_classes.c returns a list of the classes configured for the specified interface. It illustrates the use of the class handling functions.
ba_events.c prints event information as events occur, until the program is terminated with CTRL-C. It illustrates the use of the event handling functions.
ba_get_stats.c returns the statistics information for a given class. It illustrates the use of the ba_get_class_stats() function.
ba_interfaces.c returns a list of the configured interfaces. It illustrates the use of the interface handling functions.
ba_reset_stats.c resets the statistics for a given class. It illustrates the use of the ba_reset_class_stats() function.
ba_signals.c prints event information as events occur, until the program is terminated with CTRL-C. It illustrates the use of the event handling functions and the signalling mechanism.
ba_get_flows.c recovers information about all of the flows associated with a particular class.
The examples are in the directory /opt/SUNWconn/ba/examples. This directory also contains a Makefile for the examples, Makefile.