add ifstat command as comment

parent e68281a5
......@@ -123,6 +123,10 @@ def monitor_devs_ifstat(fname="rate.csv"):
def monitor_devs_ng(fname="txrate.csv" , interval_sec=0.01):
"""Uses bwm-ng tool to collect iface tx rate stats. Very reliable."""
'''
#ifstat - also gives the same result, :(
cmd = ("ifstat -t -n -b -i s1-eth1,s2-eth2,s3-eth1 > %s" % (fname))
'''
cmd = ("sleep 1; bwm-ng -t %s -o csv "
"-u bytes -T rate -C ',' > %s" %
(interval_sec * 1000, fname))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment