0

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 ?

John Pydev
  • 21
  • 3

1 Answers1

0

You can alternatively parse the /proc/net/dev file. See this code on link

It shows the same process.

Rishabh Soni
  • 159
  • 1
  • 10