Get bandwidth value ifconfig on python script : How to manipulate value from ifconfig eth0 and get bandwidth value in python script, like this:
$python foo.py eth0
UP: 7 KB/sec
DOWN: 31 KB/sec
where output script can change, use Kb/s ?
Get bandwidth value ifconfig on python script : How to manipulate value from ifconfig eth0 and get bandwidth value in python script, like this:
$python foo.py eth0
UP: 7 KB/sec
DOWN: 31 KB/sec
where output script can change, use Kb/s ?
You can alternatively parse the /proc/net/dev file. See this code on link
It shows the same process.