D-Link DSL Modem/Routers > Other DSL modem/routers

telnet access to event log for DSL 2540B

(1/1)

wicks:
I have a DSL 2540B ADSL modem/router.  I would to automate the tracking of my internet connectivity by keeping an event log on my local disk.  I can manually copy and paste from the web interface into a text file, but that means I have to regularly do this myself.

I found that I can connect to the modem using telnet.  And using the help facility I've been able to get the modem to spit out various status details to telnet.  But help is sketchy and I have not been able to find the combination that dumps out the event log.  Can you help with this?  If there is a way, I plan on setting up a Python script to drive the whole thing and set it up to run as a scheduled task.

FurryNutz:
Does the Modem have an email option for sending logs? You could have it email you the logs.




--- Quote from: wicks on October 20, 2011, 05:13:11 AM ---I have a DSL 2540B ADSL modem/router.  I would to automate the tracking of my internet connectivity by keeping an event log on my local disk.  I can manually copy and paste from the web interface into a text file, but that means I have to regularly do this myself.

I found that I can connect to the modem using telnet.  And using the help facility I've been able to get the modem to spit out various status details to telnet.  But help is sketchy and I have not been able to find the combination that dumps out the event log.  Can you help with this?  If there is a way, I plan on setting up a Python script to drive the whole thing and set it up to run as a scheduled task.

--- End quote ---

wicks:
There is no email option on the log configuration or log viewer page.  But the log configuration page has fields for "Server IP Address" and "Server UDP Port" and there is a help box on the side saying: If you have an external SYSLOG server, you may choose to configure external logging and all log entries will be sent to your remote server."

So with a little Googling, I found the free Kiwi Syslog Server and installed it on my PC  So far, it looks like the DSL modem is actually talking to it, so that's good.  It keeps a tab delimited log file on my local disk, which is what I was looking for.

FurryNutz:
kewl man, glad you found a solution. Keep us posted on it.

Navigation

[0] Message Index

Go to full version