Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2 3 4

Author Topic: D-Link DSL3780 - routerstats wont connect  (Read 19068 times)

oldfogie

  • Just arrived
  • *
  • Posts: 2
D-Link DSL3780 - routerstats wont connect
« on: January 25, 2014, 08:30:44 AM »

I'm experiencing frequent drop-outs of my adsl link.
So I've tried to monitor it with routerstats lite and it says its unable to connect to the router.
There is no telnet raw data.
and routerstats (full) tells me "Your client does not have permission to get URL /cgi-bin/STATUS/st_stat.asp from this server."
I'm running windows 7/64bit

when I log in to http://192.168.1.1/cgi-bin/STATUS/st_stat.asp?0 with firefox I see traffic and adsl statistics.
I've tried disabling windows firewall AND anti-virus software, it still wont connect.

Ive tried using PuTTy and if I select 192.168.1.1 and Telnet to port 22 I get this response

tc login: admin
Password: (here I typed in admin)
#

if I enter "ls" I get
bin      dev      lib      proc     sys      userfs   var
boaroot  etc      linuxrc  sbin     tmp      usr
#

so its clearly responding - but I see no cgi-bin directory.

Help please?
Logged

oldfogie

  • Just arrived
  • *
  • Posts: 2
Re: D-Link DSL3780 - routerstats wont connect
« Reply #1 on: January 27, 2014, 10:05:54 AM »

issue resolved - I've been emailing the author and we beileve the D-Link 3780 sets a cookie. Routerstats cannot supply the cookie so the page request is not authorized. life can be complicated. >:(
Logged

delia

  • Member
  • **
  • Posts: 42
Re: D-Link DSL3780 - routerstats wont connect
« Reply #2 on: April 07, 2014, 04:36:07 PM »

Hi. I am having the same problem Could you explain how you resolved the issue?
Many thanks.
Logged

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 32080
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: D-Link DSL3780 - routerstats wont connect
« Reply #3 on: April 07, 2014, 05:05:42 PM »

Quote
Routerstats cannot supply the cookie so the page request is not authorized.

From the sound of the reply, it seems that RS doesnt work with the DSL3750 :(
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

Blackeagle

  • Reg Member
  • ***
  • Posts: 257
Re: D-Link DSL3780 - routerstats wont connect
« Reply #4 on: April 07, 2014, 05:20:21 PM »

Ah but, that router is running Linux, so some form of stats harvesting may be available.

If for instance one was to telnet into the router and execute the command
Code: [Select]
ls /bin
then that may give a clue as to what command to use if the output is copied & pasted here.

I did google for some info on that model, but there seems very little available  :no:  A response to a similar question on the Talktalk Official forum was met with the flat reply "We do not support telnet".  Very sad I think.
Logged
ASCII stupid question, get a stupid ANSI -- TalkTalk Broadband since 2006

delia

  • Member
  • **
  • Posts: 42
Re: D-Link DSL3780 - routerstats wont connect
« Reply #5 on: April 07, 2014, 09:50:48 PM »

Hi Sorry about the delay. It has taken me a long time to work out how to do this!
Is this what you mean:

# ls /bin
ash       dd        grep      ln        mv        pwd       tar
busybox   dmesg     gunzip    login     netstat   rm        true
cat       echo      gzip      ls        pidof     rmdir     umount
chmod     egrep     hostname  mkdir     ping      sed       uname
cp        false     ip        more      ping6     sh        usleep
date      fgrep     kill      mount     ps        sleep     zcat
#

Logged

Blackeagle

  • Reg Member
  • ***
  • Posts: 257
Re: D-Link DSL3780 - routerstats wont connect
« Reply #6 on: April 07, 2014, 10:06:45 PM »

It is indeed, well done   :thumbs:

That list is a list of the Linux commands that can be typed into the router and executed.  Unfortunately, the particular command or variation thereof, is not present.  :no:

However, that's still not to say that the command does not exist on your router.  It may just 'live' in a different directory to '/bin'.

The most common variations on the command to obtain statistics in a telnet session are :-

adsl
adslctl
adslcmd
xdslcmd

It might be easier to try those variations rather than explain how to navigate inside the router.  Simply type each variation into a telnet session, and hopefully one of them will respond with a help message rather than a command :not found error.

If this proves to be the case, then it should be perfectly possible to pull the line statistics from the DLink.
Logged
ASCII stupid question, get a stupid ANSI -- TalkTalk Broadband since 2006

delia

  • Member
  • **
  • Posts: 42
Re: D-Link DSL3780 - routerstats wont connect
« Reply #7 on: April 07, 2014, 10:16:46 PM »

Thanks!
How do I enter those. Is it "ls /adsl" ?
Logged

burakkucat

  • Global Moderator
  • Senior Kitizen
  • *
  • Posts: 26643
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: D-Link DSL3780 - routerstats wont connect
« Reply #8 on: April 07, 2014, 10:27:27 PM »

How do I enter those. Is it "ls /adsl" ?

No.  :no:

Just type the relevant command at the prompt. Try each one, in sequence and note what is returned as a response.

For example, you might see adslctl: not found which indicates a failure or perhaps Usage: xdslcmd blah blah blah which would be indicative of success.  ;)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

delia

  • Member
  • **
  • Posts: 42
Re: D-Link DSL3780 - routerstats wont connect
« Reply #9 on: April 07, 2014, 10:45:29 PM »

Unfortunately, they all give "not found"  :(


Logged

burakkucat

  • Global Moderator
  • Senior Kitizen
  • *
  • Posts: 26643
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: D-Link DSL3780 - routerstats wont connect
« Reply #10 on: April 08, 2014, 12:36:23 AM »

Unfortunately, they all give "not found"  :(

That is very unfortunate.  :(

Let's wait for Blackeagle . . . he may have other ideas.
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Blackeagle

  • Reg Member
  • ***
  • Posts: 257
Re: D-Link DSL3780 - routerstats wont connect
« Reply #11 on: April 08, 2014, 09:53:54 AM »

I do indeed have other ideas ;)

Not least because I have never been in favour of giving up at the first hurdle.

Lets approach the problem from a slightly different angle, if delia is willing ?

Firstly, lets define what we do know.

  • The router is running some form of Linux
  • The router can report stats in the GUI, proving some method of communication with the driver is possible
  • Apparent use of a session cookie precludes easy gathering of the stats from the GUI
  • None of the more common commands for obtaining stats via telnet are apparent

1. Can easily be determined by typing uname -a at the telnet command line.

Another useful command would be cat /proc/cpuinfo which should reveal details of the chipset in the D-Link DSL-3680. It is highly likely that the chipset is in use in other routers and this may well give a clue to the method of communication D-Link are using.

Lastly, another useful command to issue would be echo "$PATH"  This should return the locations of all the binary commands in the router, in other words, where the Linux system 'looks' to find a command typed into it.
E.G.
Code: [Select]
# echo "$PATH"
/bin:/sbin:/usr/bin
#

From this we can see that my router first looks in '/bin', then in '/sbin' and finally in '/usr/bin' before returning a 'command not found' message.  Performing ls upon each of these locations gives the following
Code: [Select]
# ls /bin
zebra        swapdev      printserver  ln           ebtables     cat
wpsd         startbsp     pppc         klog         dns          busybox
wlancmd      sntp         ping         kill         dms          brctl
web          smbpasswd    ntfs-3g      iwpriv       dhcps        atserver
usbserver    smbd         nmbd         iwconfig     dhcpc        atmcmd
usbmount     sleep        netstat      iptables     ddnsc        atcmd
upnp         siproxd      mount        ipp          date         at
upg          sh           mldproxy     ipcheck      cwmp         ash
umount       scanner      mknod        ip           cp           adslcmd
tr111        rm           mkdir        igmpproxy    console      acl
tr064        ripd         mii_mgr      hw_nat       cms          ac
telnetd      reg          mic          ethcmd       cli
tc           radvdump     ls           equipcmd     chown
switch       ps           log          echo         chmod
# ls /sbin
vconfig   rmmod     poweroff  init      halt
route     reboot    insmod    ifconfig  arp
# ls /usr/bin
wget        top         test        mcast       ftpput      [[
traceroute  tftp        telnet      killall     ftpget      [
#

This then is a complete set of the commands that can be typed into a telnet session on this particular router.  A similar procedure followed on delia's router may or may not reveal something conclusive.  :-\

It is most unfortunate that TT have not made the firmware available for download  >:(
Logged
ASCII stupid question, get a stupid ANSI -- TalkTalk Broadband since 2006

delia

  • Member
  • **
  • Posts: 42
Re: D-Link DSL3780 - routerstats wont connect
« Reply #12 on: April 08, 2014, 03:44:59 PM »

Thanks again for replying. I'm not sure I'm up to this, but I'll have a go.
This is what I have got so far. Hope it's what you meant!

Quote
# cat /proc/cpuinfo
system type             : Ralink RT63365 SOC
processor               : 0
cpu model               : MIPS 34K V5.5
BogoMIPS                : 465.30
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
VCED exceptions         : not available
VCEI exceptions         : not available
unaligned accesses      : 106114016

processor               : 1
cpu model               : MIPS 34K V5.5
BogoMIPS                : 349.79
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
VCED exceptions         : not available
VCEI exceptions         : not available
unaligned accesses      : 106114016

processor               : 2
cpu model               : MIPS 34K V5.5
BogoMIPS                : 349.79
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
VCED exceptions         : not available
VCEI exceptions         : not available
unaligned accesses      : 106114016

processor               : 3
cpu model               : MIPS 34K V5.5
BogoMIPS                : 348.97
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
VCED exceptions         : not available
VCEI exceptions         : not available
unaligned accesses      : 106114016

# uname-a
-sh: uname-a: not found
# echo"$PATH"
-sh: echo/userfs/bin:/usr/sbin:/bin:/usr/bin:/sbin: not found

# # echo "$PATH"
# /bin:/sbin:/usr/bin
-sh: /bin:/sbin:/usr/bin: not found
# #
# ls /bin
ash       dd        grep      ln        mv        pwd       tar
busybox   dmesg     gunzip    login     netstat   rm        true
cat       echo      gzip      ls        pidof     rmdir     umount
chmod     egrep     hostname  mkdir     ping      sed       uname
cp        false     ip        more      ping6     sh        usleep
date      fgrep     kill      mount     ps        sleep     zcat
Logged

Blackeagle

  • Reg Member
  • ***
  • Posts: 257
Re: D-Link DSL3780 - routerstats wont connect
« Reply #13 on: April 08, 2014, 04:09:20 PM »

 ;D Yay  :dance:

Very interesting !!  We can already see that the router is based upon the Ralink RT63365 SoC1.

Could you indulge me and post the contents of ls /sbin and ls /usr/bin please ?

Also, if you could have another go at uname -a, noting that there is a space between uname and the -a, which is why it didn't work.

In the meantime, I shall try and see if I can find another model of router using that chipset  :)

[1] http://www.mediatek.com/en/products/connectivity/xdsl/adsl-wifi/rt63365/
Logged
ASCII stupid question, get a stupid ANSI -- TalkTalk Broadband since 2006

renluop

  • Kitizen
  • ****
  • Posts: 3177
Re: D-Link DSL3780 - routerstats wont connect
« Reply #14 on: April 08, 2014, 04:32:30 PM »

Probably a daft question from un- knowledgeable me,  but looking from another angle must the router set a session cookie? If the answer is  "no" might the OP be able to alter the cookie settings to prevent one being set?
Logged
Pages: [1] 2 3 4