Calculate Network Traffic Coming Into The Server

Linux only

Calculates the mb/s network traffic coming into the server. You need to change bond0 in your env and $6 may be $5 depending on your sar output.

sar -n DEV 1 5 | grep "eth0 " | awk '{mb = $6 /1024/1024 ; print mb}'

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.