Tuesday, 26 May 2015

Interface stats per sec

During performance tests related to measuring network throughput, it might be necessary to review the per second Bytes In/Out of a given interface.

While there are tools like iotop which provide a lot more features, here is a quick shell script based on 'ifconfig' which gives an instantaneous stat. Comes across very handy for me!