Hello Philippe,
On 22/11/2015 14:35, philippe@faure.ca wrote:
Hello,
I am looking to find a way to record data usage from a specific device on my network. Ideally the out out would be a text file with the total usage. Is there a way to have iftop run in the background and have it update a file.
Does the -t option to iftop do what you want? You would redirect the output to a log file or pipe it to a script.
If not, is there another utility that people know about the might be able to help me?
Another solution if you're trying to do traffic accounting is something like net-acct. On a students' network, we used to log something like (timestamp, source IP & port, destination IP & port, volume), and then use this to hunt bandwidth hogs.
Cheers, Fred.
Hello Frédéric,
I had a look at iftop and the -t option doesn't exist. Well at least in the version that I have installed.
I am running Ubuntu 14.04 LTS. Which is limited to iftop 1.0~pre2.5.
Once I have first figured out how to update to the newer version of iftop without changing from the current LTS configuration, I will give the "-t" option a try.
Thank you
Philippe
Quoting Frédéric Perrin fred@fperrin.net:
Hello Philippe,
On 22/11/2015 14:35, philippe@faure.ca wrote:
Hello,
I am looking to find a way to record data usage from a specific device on my network. Ideally the out out would be a text file with the total usage. Is there a way to have iftop run in the background and have it update a file.
Does the -t option to iftop do what you want? You would redirect the output to a log file or pipe it to a script.
If not, is there another utility that people know about the might be able to help me?
Another solution if you're trying to do traffic accounting is something like net-acct. On a students' network, we used to log something like (timestamp, source IP & port, destination IP & port, volume), and then use this to hunt bandwidth hogs.
Cheers, Fred.
Also take a look at 'bandwidth monitor next generation'. It is a similar command line tool that can log to a file or stdout. I used it to make plots of large downloads to benchmark various wireless router configurations.
https://www.gropp.org/?id=projects&sub=bwm-ng
Thanks, Andy
On Sun, Nov 22, 2015 at 6:49 PM, Philippe Faure philippe@faure.ca wrote:
Hello Frédéric,
I had a look at iftop and the -t option doesn't exist. Well at least in the version that I have installed.
I am running Ubuntu 14.04 LTS. Which is limited to iftop 1.0~pre2.5.
Once I have first figured out how to update to the newer version of iftop without changing from the current LTS configuration, I will give the "-t" option a try.
Thank you
Philippe
Quoting Frédéric Perrin fred@fperrin.net:
Hello Philippe,
On 22/11/2015 14:35, philippe@faure.ca wrote:
Hello,
I am looking to find a way to record data usage from a specific device on my network. Ideally the out out would be a text file with the total usage. Is there a way to have iftop run in the background and have it update a file.
Does the -t option to iftop do what you want? You would redirect the output to a log file or pipe it to a script.
If not, is there another utility that people know about the might be
able to help me?
Another solution if you're trying to do traffic accounting is something like net-acct. On a students' network, we used to log something like (timestamp, source IP & port, destination IP & port, volume), and then use this to hunt bandwidth hogs.
Cheers, Fred.
iftop-users mailing list iftop-users@lists.beasts.org http://lists.beasts.org/mailman/listinfo/iftop-users
Le lundi 23 à 1:49, Philippe Faure a écrit :
Hello Frédéric,
I had a look at iftop and the -t option doesn't exist. Well at least in the version that I have installed.
I am running Ubuntu 14.04 LTS. Which is limited to iftop 1.0~pre2.5.
Looking at history, indeed the -t option was added sometimes between 1.0pre2 and 1.0pre4. You'll have to install a newer version. Debian has a 1.0pre4 package, so it would be a matter of recompiling under Ubuntu.
I think if you need scripting, one of the package dedicated to traffic accounting might be better suited, that will be more robust than iftop.
Once I have first figured out how to update to the newer version of iftop without changing from the current LTS configuration, I will give the "-t" option a try.
I did manage to get it to work. There will be some scripting invovled. The issue that I have come across is that most traffic accounting packages that I have found seem to look at all data through an interface, and don't allow the user to limit the information to a single IP address.
I will keep looking though.
Thank you
Philippe
Quoting Frédéric Perrin fred@fperrin.net:
Le lundi 23 à 1:49, Philippe Faure a écrit :
Hello Frédéric,
I had a look at iftop and the -t option doesn't exist. Well at least in the version that I have installed.
I am running Ubuntu 14.04 LTS. Which is limited to iftop 1.0~pre2.5.
Looking at history, indeed the -t option was added sometimes between 1.0pre2 and 1.0pre4. You'll have to install a newer version. Debian has a 1.0pre4 package, so it would be a matter of recompiling under Ubuntu.
I think if you need scripting, one of the package dedicated to traffic accounting might be better suited, that will be more robust than iftop.
Once I have first figured out how to update to the newer version of iftop without changing from the current LTS configuration, I will give the "-t" option a try.
Am 22.11.2015 um 15:35 schrieb philippe@faure.ca:
Hello,
I am looking to find a way to record data usage from a specific device on my network. Ideally the out out would be a text file with the total usage. Is there a way to have iftop run in the background and have it update a file.
If not, is there another utility that people know about the might be able to help me?
there is also vnstat which logs accumulated traffic even on multiple interfaces.
Regards,
Markus
Thank you for your suggestion,
Unfortunately, vnstat doesn't have the provision (or at least I couldn't find it) to be able to limit the logging to 1 device. I am running iftop on a server and want to monitor 1 device on the network.
Philippe
Quoting Markus Koschany apo@gambaru.de:
Am 22.11.2015 um 15:35 schrieb philippe@faure.ca:
Hello,
I am looking to find a way to record data usage from a specific device on my network. Ideally the out out would be a text file with the total usage. Is there a way to have iftop run in the background and have it update a file.
If not, is there another utility that people know about the might be able to help me?
there is also vnstat which logs accumulated traffic even on multiple interfaces.
Regards,
Markus