How to monitor your data transfer via vnstat – Network Traffic Monitor

We can check the status of data transfer using vnstat command. Install it by the command

yum install vnstat 

Main configuration files: /etc/vnstat.conf and /etc/sysconfig/vnstat

USAGE

vnstat
vnstat -i interface
vnstat -i interface -option 

To see eth0 stats, enter                   : vnstat -i eth0
To see daily stats for eth0, enter      : vnstat -i eth0 -d
To see hourly network stats, enter    : vnstat -i eth0 -h
To see monthly network stats, enter  : vnstat -i eth0 -m
To see weekly network stats, enter   : vnstat -i eth0 -w

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>