• March 28, 2024, 03:06:10 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: telnet access to event log for DSL 2540B  (Read 5541 times)

wicks

  • Level 1 Member
  • *
  • Posts: 1
telnet access to event log for DSL 2540B
« 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.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: telnet access to event log for DSL 2540B
« Reply #1 on: October 20, 2011, 07:01:31 AM »

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



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.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

wicks

  • Level 1 Member
  • *
  • Posts: 1
Re: telnet access to event log for DSL 2540B
« Reply #2 on: October 21, 2011, 05:39:35 AM »

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.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: telnet access to event log for DSL 2540B
« Reply #3 on: October 21, 2011, 07:03:50 AM »

kewl man, glad you found a solution. Keep us posted on it.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.