Skip to main content

vnstat: Monitor Network Traffic

vnstat monitors network traffic in linux with a command line interface. It's very useful for keeping traffic database of your traffic as well as real time traffic numbers. It creates a database for the default interaface - enp2s0.

You can check your exact interface names with ip addr.
[donato@archdesktop ~]$ ip addr  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00      inet 127.0.0.1/8 scope host lo         valid_lft forever preferred_lft forever      inet6 ::1/128 scope host          valid_lft forever preferred_lft forever  2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000      link/ether 78:24:af:36:61:21 brd ff:ff:ff:ff:ff:ff  3: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000      link/ether 28:f3:66:20:7a:1e brd ff:ff:ff:ff:ff:ff      inet 192.168.15.3/24 brd 192.168.15.255 scope global dynamic noprefixroute wlp4s0         valid_lft 80684sec preferred_lft 80684sec      inet6 fe80::7a2b:48f9:dc0e:e147/64 scope link noprefixroute          valid_lft forever preferred_lft forever      inet6 fe80::f3bf:83d9:f401:2056/64 scope link noprefixroute          valid_lft forever preferred_lft forever  4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100      link/none       inet 10.135.15.41/24 brd 10.135.15.255 scope global noprefixroute tun0         valid_lft forever preferred_lft forever      inet6 fe80::3d1:eff7:1c52:5f44/64 scope link stable-privacy          valid_lft forever preferred_lft forever  

Then start by creating a database for the interface. 
$ sudo vnstat --add -i [interface]

I check my traffic with the command:
$ vnstat -h [hourly]
$ vnstat -d [daily]
$ vnstat -l [real-time]

Comments

Popular posts from this blog

Appindicator In Natty Ubuntu 11.04

Previously ranted about the blind alley Ubuntu 11.04 seemed to be leading us when it comes to some applications not being ready yet for the dropping of system tray.  What I should have done is press on. There are posts about editing a white list with a recommended GUI tool to help us out here , here and here . Like everything in Linux, there's a configuration file for it, if you can find it and if you have the inclination to go ninja. If not then there's dconf-editor. Download dconf-tools from Software Center. Navigate to desktop>unity>panel. Add your application in the white list. Then close the window. No save button. mmm. So far I have added Shutter, Dropbox and Keepassx in the white list.                Before...  After.

Evolution Mail on GNOME 3.26

There's a slight change in the user interface. A To Do column now appears to the rightmost after the GNOME 3.26 update. Also there's a noticeable stability increase, what with goa-daemon stopping its RAM usage creep. I don't have to kill it every couple of hours.

New Converge ICT Plan Max with Sky Now

I pulled the trigger on Converge Max plan 400Mbps with Sky channels. I went to their sales office and asked for the upgrade. No charge at all and they didn't ask me to return the old modem. It looks like they will pull it when they install the new modem.e     It came with a black box for the TV. The configuration is easy but it took me 3 days to figure out the Wired connection. It should be fine except I have to jiggle it in the config (GUI). Turn 802.1x  on and off to finally connect.  Here's the speed for the Wired connection: