IP Accounting scripts

In this package you get:
A) a C program ("ipmatrix") which parses the logs generated by
cisco-acct into a large table indexed by "classes" of networks.
The classes are defined by a configuration file ("ipmatrix.conf").

B) a Perl script ("ipmatrix.build") which builds up configuration
files from a smaller list of definitions ("ipmatrix.BB") and from the
RIPE DB "ripe.db.inetnum".

B) a Perl script ("Report") which prints nice tables of IP traffic.


Recipe:

0) Build an "ipmatrix.conf" file:
	0.1) run:
zcat $(RIPE_DIR)/ripe.db.inetnum.Z | ipmatrix.build > ipmatrix.conf

	0.2) edit "ipmatrix.conf" substituting to class names
something more specific (e.g. the domain name for each nat. customer)
and possibly dropping some of the uninteresting classes (e.g. ANY_*);

1) Run the "Monthly" script, possibly from cron.
2) At your convenience, run the script "RUN" with a list of month
numbers, e.g.
	RUN 07 08 09

3) Keep the Summary.* and Report.* files for ever.

TODO:
Find a better way of specifing configurations; f.i. a query to RIPE DB
retrieving the AS number counld be fine.
Merge the "cisco-acct" and "ipmatrix" functions into one program (it
could save a lot of disk space, but I wouldn't dare to store all my
daily accounting logs into a dbm file!).
Find a simpler and more automatic way for wrinting "ipmatrix.conf"
files.



