Asked by Wylie on 2011-11-05

I want to compare the monthly bandwidth totals with the totals my ISP reports, so,
I am looking for the data file that gnome-system-monitor uses to record the network history,
so I can reset/zero it in gnome-system-monitor so that it starts fresh each month.
In summary I wish to be able to reset/zero gnome-system-monitor network history.

Question information

English Edit question
Ubuntu gnome-system-monitor Edit question
No assignee Edit question
Last query:
Last reply:
Chris (fabricator4) said : #1

On reading, the only way to do it is to use modprobe to remove and reload the driver module for the network device. If the module has been compiled as part of the kernel the only way to do it is to reboot.

To find out which module has been loaded for (for eg) eth0:

ethtool -i eth0

To remove and re-insert the driver module:

modprobe -r module_name
modprobe module_name
ifup eth0

Information was from this page:

You would probably need to use sudo for the modprobe and ifup commands.


Chris (fabricator4) said : #2

By the way, the data file you want is /proc/net/dev but you can't edit, delete, or move that file. You can however get the data out of it or copy it. With a bit of ingenuity you should be able to write a script that calculates the difference in the data in that file, therefore negating the necessity to reset the counters completely. ;-)


Can you help with this problem?

Provide an answer of your own, or ask Wylie for more information if necessary.

To post a message you must log in.