Linux Today: Linux News On Internet Time.

Traffic accounting with SNMP and Python on Windows

Jun 01, 2009, 06:04 (0 Talkback[s])

[ Thanks to Ahmed Kamal for this link. ]

"A nifty little features of most routers or ADSL modems, is support for SNMP. Since both me and my old folks use the same ADSL line, any host based monitoring solution wouldn't really work. I had to monitor the usage using SNMP. Since my folks are using Windows, the solution had to work on that. The solution overview is:

"1- Enable SNMP on ADSL modem
2- Use a windows scheduled task to run a windows Batch file, that uses SNMP-tools for windows to pull data from the router
3- Use a windows scheduled task to run a python script that processes the batch file output and computes the total traffic"

Complete Story

Related Stories: