I would like to log my bandwidth into a database and find out when my windows server 2003 is being used the most. I want to feed the database with the bandwidth passed from the last feed (let's say it's 15 minutes).
I know that the netstat -e
command returns the bandwidth passed since interface's start.
Is there a way to somehow reset that counter without disabling and reenabling the interface?
If not, is there a better way than caching the last sample and calculating the difference each time?
I'm scripting in python if it's related.