We do this by iteratively taking the output of flow-stat -f0, grabbing the "Average kbits/sec" line, and putting the data in whatever output form you want.
Something along the lines of: flow-cat -a $FILE | flow-nfilter -f$FILTERFILE -F$FILTERDEF | flow-stat -f0 > $OUTPUTFILE embedded in a perl script which then gets the bandwidth/sec info > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Gavin Cato > Sent: Monday, September 13, 2004 10:18 PM > To: [EMAIL PROTECTED] > Subject: [Flow-tools] Trouble understanding flow-report > > > Hi, > > I've got flow-tools working fine with my network but I just > can't figure out > the flow-report program. > > All I need to do is to be able to calculate usage for a given > period for a > customer network i.e. 192.168.100.8/29 > > I'm aware that I can pump the time period I want into flow-report with > flow-cat, but I just can't figure out the config files and syntax for > flow-report. I was wondering if anyone would be kind enough > to post a sample > config file. I don't need anything special i.e. Top talkers > or anything like > that, I just need byte counts in/out. > > I wrote a simple perl program to parse the output of "flow-cat ft* | > flow-print" which works fine but as you can imagine it's > horrendously slow > :) > > Would very much appreciate a sample - Once I see a sample > I'll be fine from > there. I couldn't get the sample from the docs working, it > was giving syntax > errors. > > Thanks a heap > > Gav > > > > > > > > > > > > _______________________________________________ > Flow-tools mailing list > [EMAIL PROTECTED] > http://mailman.splintered.net/mailman/listinfo/flow-tools > _______________________________________________ Flow-tools mailing list [EMAIL PROTECTED] http://mailman.splintered.net/mailman/listinfo/flow-tools
