gnome-system-monitor

Asked by Wylie

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-system-monitor Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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:

http://www.ducea.com/2006/09/08/resetting-ifconfig-counters/

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

Chris

Revision history for this message
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. ;-)

Chris

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.