IPQoS Administration Guide

How to Get Instructions for Viewing a Flow-Accounting File

You must create a script to display the contents of the flow-accounting file that was created by acctadm. You can use as the basis for your script a demonstration script for resource management tasks and processing accounting. The following task shows how to get information about the demonstration script.

Before you can use the next procedure, you must have created a file to hold flow records, as described in How to Create a File for Flow-Accounting Data. You also must have added a flowacct action and parameters to the IPQoS configuration file so that traffic classes are tracked by flowacct.

The next task introduces the libexacct programmatic interface and exdump utility to provide output for an acctadm file for viewing processes and tasks. For technical information, refer to the libexacct(3LIB) man page.

  1. Become superuser on the IPQoS system and access the directory /usr/demo/libexacct.

    This directory contains a Makefile and the exdump.c script.

  2. Perform the instructions to build exdump as is explained in the README.

  3. View the data in the flow-accounting file, as is explained in the README.