BW-IPFM is a perl script wich uses the ipfm log files to generate easy-to-read reports.
It can provide daily, monthly and specific time frame repports.
Monthly Bandwith Usage for November 2002
Hosts In Out Total
------------------------------------------
nala 159.48M 14.33M 173.81M
reglisse 8.50M 52.60M 61.10M
simba 274.51M 18.99M 293.50M
BROADCAST 118.48K 0 118.48K
------------------------------------------
Total: 442.69M 85.92M 528.61M
BW-IPFM is free and protected by the GPL license.
Version 1.5 |
Fixed wrong separator detection
Fixed wrong day/month displayed in title with -d and -m
Fixed wrong title display when -interval used
Improved FILENMAE detection
|
Version 1.4 |
Fixed the bug of wrong monthly reading
Fixed a bug in the imbricated while wich was not detecting all log and may fall in infinit loop
Fixed the missing -i in the help
Added the -yesterday switch
Added the -lastXXdays switch
Added the -lastXXmonths switch
Added the -debug switch
Improved the from to value initialization with the new interval function
Improved help function
Changed -from and -to for -interval
|
Version 1.3 |
|
Version 1.2 |
|
Version 1.1 |
Fixed bug of non appearing host
Fixed bug of bandwith attribution to the wrong host
Fixed bug of non existent september in the month list
Added the -from directive
Added the -to directive
Added Sort support
Added the $ipfm_minute and $ipfm_second configuration
Improved the argument capture routine
Removed the $main_file configuration
Removed the -w directive, now use -from -to
Removed the -s directive, now use -from -to
|
Version 1.0 |
|
|

Download and install IPFM from http://robert.cheramy.net/ipfm
Download BW-IPFM and untar
Edit bw-ipfm and modify the line $configuration_file to point on your ipfm.conf
Edit your ipfm.conf to create hourly logs, example:
NEWLOG
LOG 192.168.0.0/255.255.255.0
FILENAME "/var/log/ipfm/%y/%m/%d/%H:%M:%S"
DUMP EVERY 1 hour after 00 minutes 00 seconds
CLEAR EVERY 1 hour after 00 minutes 00 seconds
SORT TOTAL
That's it, now you're ready to type ./bw-ipfm and see your repports!

USAGE: ./bw-ipfm [-d [DD][/MM][/YY] | -m [MM][/YY] | [-interval DD/MM/YY-DD/MM/YY]][-f (host|in|out|total)][-o (asc|des)][-i ID][-h]
If no argument are specify, -d is assume
-d [DD][/MM][/YY] | generate a daily repport
(current day of current month of current year is used if none are specify |
-m [MM][/YY] | generate a monthly repport
(curent month of current year is used if none are specify) |
-yesterday | generate a daily repport for yesterday |
-lastXXday | generate a repport for the last XX days |
-lastXXmonths | generate a repport for the last XX months |
-interval DD/MM/YY-DD/MM/YY | gspecify the interval for the repport |
-i ID | Specify wich FILENAME you want to use from your ipfm.conf
(usefull only if you have multipe FILENAME instance in your ipfm.conf) |
-f [host|in|out|total] | specify the field to sort on, can be host, in, out or total |
-o [asc|des] | specify the order to sort on, can be asc ascending or des for descending |
-debug | gPrint repport and debugging information | -h | Print this help |

For question, suggestion or support, please contact the author,
Patrick Lagacé, (bwipfm AT patricklagace DOT com)
|