Capture bandwidth usage from remote machine across time
0
votes
1
answer
549
views
I would like to capture the bandwidth usage to and from one specific remote machine across time on my system.
iftop
command is definitely one option, which gives the network usage, and has filtering , but I need to parse the text output to get the incoming bandwidth usage and outgoing bandwidth usage.
sudo iftop -t -s 2 -f "src host "
My current plan is to run the above command in a loop, parse the text output each time and append to a csv file (current_time, transmitted, received)
.
Is there a better alternative ?
Asked by Akheel K M
(11 rep)
Aug 30, 2019, 02:15 PM
Last activity: Sep 12, 2019, 08:52 AM
Last activity: Sep 12, 2019, 08:52 AM