Hi, Have a look to the EXAMPLES file, section VII (about using the pmacct client). Retrieving multiple ports with a single query is possible but ranges are not supported - see below:
=== Show traffic between the specified hosts; this aims to be a simple example of a batch query; note that as value of both '-N' and '-M' switches it can be supplied a value like: 'file:/home/paolo/queries.list': actual values will be read from the specified file (and they need to be written into it, one per line) instead of commandline: shell> pmacct -c src_host,dst_host -N "10.0.0.10,10.0.0.1;10.0.0.9,10.0.0.1;10.0.0.8,10.0.0.1" shell> pmacct -c src_host,dst_host -N "file:/home/paolo/queries.list" === Cheers, Paolo On Wed, Dec 21, 2011 at 11:26:18PM +0000, Mik J wrote: > Hello, > > I'm interesting in the following command to retrieve statistics > $ pmacct -c dst_port -N 80 -p /tmp/my.pipe > > But I would like to know if it's possible to specify port ranges (from 80 to > 90) or multiple ports (80, 1080, 8080) > > I have tried this > $ pmacct -c dst_port,dst_port -N 80,1080 -p /tmp/my.pipe > and I've noticed only the last iteration is considered > > Thank you > _______________________________________________ > pmacct-discussion mailing list > http://www.pmacct.net/#mailinglists _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
