Hi Mike,

I would recommend towards doing the job with two plugins, one being
fed with ipv4-only traffic the other with ipv6-only traffic: a touch
of aggregate_filter will do that for you. Then, since you are just
interested in totals you can use an aggregation of 'none' (which in
a counter intuitive fashion does mean rather aggregate it all). See
an example below:

== nfacctd.conf ==
...
plugins: v4, v6
aggregate_filter[v4]: ip
aggregate_filter[v6]: ip6
aggregate[v4]: none
aggregate[v6]: none
...
==

Cheers,
Paolo


On Thu, Jan 26, 2012 at 03:42:18PM +1300, Michal Ludvig wrote:
> Hi guys
>
> I need some way to monitor the amount of IPv4 vs IPv6 traffic on our  
> uplinks. I was hoping to do that with  pmacct 0.14.0rc3 but can't figure  
> out how to do the sums? Is there a -s option for summing the internet  
> protocol version? I'm not after specific addresses, just would like a  
> table like:
>
> IPv4    IN        nnnn    nnnnnnn
> IPv4    OUT    nnnn    nnnnnnn
> IPv6    IN        xxxx    xxxxxxx
> IPv6    OUT    xxxx    xxxxxxx
>
> Ideally if it could run on multiple interfaces at the same time and the  
> sums would display the interface too that'd be great. But I can live  
> with having multiple instances of pmacctd running.
>
> Is there any way to do that with pcap-based pmacctd?
>
> Thanks!
>
> Mike
>
> _______________________________________________
> pmacct-discussion mailing list
> http://www.pmacct.net/#mailinglists

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to