2 Sep 15:49
Re: Getting total traffic counts for a specific host
Carter Bullard <carter <at> qosient.com>
2008-09-02 13:49:23 GMT
2008-09-02 13:49:23 GMT
Hey David,
Sorry for the delayed response, just got back from vacation.
I would use rabins() to generate 6 hour bins of the data for your
specific
machine. Because you want metrics that apply to a single object, you'll
need to use the "rmon" option, to convert bi-directional flow data
(which
involves two objects; the source and the destination) into RMON style
data, that involves only one object. And you will only want to process
just the data that matches your hosts IP address or ethernet address,
depending on what you want to count.
This should do it for IP traffic:
1. rabins -M rmon -m saddr -M time 6h -R /path/to/data/2008/month \
-w /tmp/argus.host.out - ip and host x.y.z.w
A little explanation. rabins(), with these options, will
process all the
data in a given month that involved ip host x.y.z.w. The "-M
rmon" option
will condition the flow records so that aggregating the data
based on just
one of the IP addresses ("-m saddr") in the flow record,
generates useful
data. And the scope of the aggregation will be 6 hour bins ( "-
M time 6h").
We write the output of rabins() into a temporary file "-w /tmp/
(Continue reading)
RSS Feed