ipacsum - summarize, display and compact ip accounting information
ipacsum [ --debug dbopt? [ --dir, -d DIR? [ --endtime, -e time? [ --exact, -x? [ --filter, -f regex? [ --fixed-quantity Q? [ --png DIR? [ --png-asis? [ --png-average-curve N? [ --png-caption-in-index? [ --png-height N? [ --png-index FILE? [ --png-no-average? [ --png-normalize SEC? [ --png-filename-prefix PREFIX? [ --png-total? [ --png-use-smallfont? [ --png-width N? [ --graph, -g? [ --help, -h? [ --interval, -i n? [ --replace, -r? [ --show-run-progression? [ --starttime, -s time? [ --timeframe, -t timeframe? [ --version?
ipacsum is part of the ipac linux ip accounting package.
ipacsum first reads files from the directory /var/log/ip-acct. The files in this directory contain ip accounting counter information and are created by fetchipac(8)? on a regular basis or by ipacsum itself (see below). By default, all files are read.
Then, it displays a summary of the data from all these files. For each ip accounting rule that appears in one of the input files, it displays a number which represents the total bytes which have been counted by the rule. For values over 9999 bytes, the count is displayed in KBytes with a "K" appended (1024 Bytes = 1 KByte). For values over 9999 KBytes, the count is displayed in MBytes with a "M" appended (1024 KBytes = 1 MByte). For values over 9999 MBytes, the count is displayed in GBytes with a "G" appended (1024 MBytes = 1 GByte).
Additionally, the host name, the current time and the creation times of the oldest and the newest input files are printed.
ipacsum can create png images for every rule which is displayed (so the --filter option can be used to create only certain pngs). The png contains a much nicer version of the ascii graph.
PNG image creation depends on the existence of the perl GD library. If you do not have the GD library installed, ipacsum won't be able to create images.
If you only have version 1.19 or older of the GD library, ipacsum will create GIF images instead of PNG images. Newer GD library versions dumped the GIF support in favor of PNG due to legal / copyright reasons. All newer browsers support PNG images, and their use is strongly encouraged. All options described in this section start with '--png'; they work the same way if you use the alternative versions which start with '--gif' instead. There is no functional difference.
The graph printing function (--graph) doesn't work very well and the output is ugly. Use --png instead.
ipacsum understands an option "--debug dbopt" if the debugging code wasn't stripped out during installation. The dbopt argument can be one or more of the following items, separated by space, which each switch on one debugging option. If you want to switch on more than one, put the list into double quotes. All debugging options produce output on stdout.
This man page belongs to ipac version 1.10. For updates and other information, look at http://www.daneben.de/ipac.html
One page links to ipacsum(8):