Possible to save router logs?

Chris Liechti cliechti at gmx.net
Sun Mar 31 12:18:49 EST 2002


Luap777 at hotmail.com (Paul) wrote in 
news:bbde2416.0203310724.4150665d at posting.google.com:
> I have a D-Link 704 cable/DSL router. Unfortunately, it has very
> limited logging capabilities(in that it doesn't save logs, it just
> rights over them when the space fills.) What I would like to do is
> right a program to save the logs to my hard drive every 12 hours or
> so. I normally have to access the web page with the url being the
> local IP of the router, then type in a password to get access to the
> logs. Has anyone attempted something like this? I know this is kinda
> general, but any feedback would be appreciated. It might give me an
> idea of where to begin. Thank you.

with the urllib module you can easily get a webpage i.e the log page of 
your router. you may first have to log in. for that you just have to
format the HTTP GET correctly. when you find out what you browser sends to 
login you can mimic that with the urllib.

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list