• July 21, 2019, 01:47:36 AM
  • 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 3602 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: 47578
  • 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:200mb/10Mb>NetGear C7800>DIR-882>DGS-1100>HP 24pt Gb Switch. COVR-3902/2202/1203,DIR-2680,890L,882,880L,868L,DNR-202L,DNS-345x2,DCS-933L,936L and 960L.
Go Here>Router Troubleshooting

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: 47578
  • 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:200mb/10Mb>NetGear C7800>DIR-882>DGS-1100>HP 24pt Gb Switch. COVR-3902/2202/1203,DIR-2680,890L,882,880L,868L,DNR-202L,DNS-345x2,DCS-933L,936L and 960L.
Go Here>Router Troubleshooting