Posts

Showing posts from September, 2017

Get network transfer information from linux

Whilst attempting to find some information for a project necessary on calculating (guesstimating) a budget for bandwidth used by a machine in the cloud I had to know where we were with current usage. Unfortunately the cloud services this VM sits in don't have any method exposed to show my usage and as such I turned to AskJeeves to find out some linux tools to help me out. First off the rank is  vnStat  which seems to be part of most of my Ubuntu boxes after looking at a few of them. Actually, that's the only necessary tool I used to get my data. By invoking vnstat with no parameters I got a nice printout of: ~$ vnstat Database updated: Mon Sep  4 00:17:31 2017    ens3 since 05/22/2017           rx:  1.25 TiB      tx:  21.85 TiB      total:  23.10 TiB    monthly                      rx      |     tx      |    total    |   avg. rate      ------------------------+-------------+-------------+---------------        Aug '17    194.53 GiB |    6.19 TiB |    6.38