[flow-tools] New flow-stat design

Horatio B. Bogbindero wyy@admu.edu.ph
Fri, 14 Jun 2002 11:39:23 +0800


thanks for the tip. i am going to be working on it in a while. thanks again.

good luck!

Surlignage Mark Fullmer <maf@eng.oar.net>:

> On Thu, Jun 13, 2002 at 03:12:27PM +0800, Horatio B. Bogbindero wrote:
> > > 
> > > The idea is have flow-stat do the number crunching and export a simple
> > > to parse format then have other front ends written in perl or python
> > > which produce ASCII, HTML, RRD, etc.
> > > 
> > i see. must be some generic and easily parsable format i support. of
> > course, wouldn't it be cool to at least have an HTML frontend part of
> > the distribution already. (as you said probably in python or perl)
> 
> HTML frontends are definately on the radar.  If possible I'd like
> to see FlowScan or a derivative of it to produce RRD style graphs too.
> 
> > that cool. the new flow-stat will save me a great deal of piping.
> basically,
> > i have a PHP frontend that simply calls that series of piped commands
> > and outputs them onto the HTML page. with the new flow-stat it would be
> much
> > cleaner.
> 
> And a lot faster.
> 
> > -ability to breakdown output into shifts (8:00-6:00 and 6:00-8:00 
> > for example). this could probably be done with a time start and
> > time end parameter to the flow-nstat config. i do this using a shell 
> > script and piping the commands and using flow-iptime (the crufty 
> > little thing migz and i wrote). which as you can see is really quite 
> > messy. we have this feature for billing since early morning hours
> > are much cheaper than primetime hours.
> 
> I think you can do this with the new filtering code, ie
> 
> filter-primitive period1
>   type time
>   permit gt 8:00
>   permit lt 18:00
> 
> filter-primitive period2
>   type time
>   permit lt 8:00
>   permit gt 18:00
> 
> filter-definition rate1
>   match start-time period1
> 
> filter-definition rate2
>   match start-time period2
> 
> mark
> 
> _______________________________________________
> flow-tools@splintered.net
> http://www.splintered.net/sw/flow-tools
> 



-------------------------------------------
William Emmanuel S. Yu
Ateneo Campus Network Group (AteneoCNG)
email  :  wyu at ateneo dot edu
web    :  http://CNG.ateneo.net/wyu/
phone  :  +63(2)4266001-4186
GPG    :  http://CNG.ateneo.net/wyu/wyy.pgp