Broadband Related > Router Monitoring Software
Getting extra DSL stats from TP-Link modem/routers
kitz:
--- Quote ---the firmware still contains the telnetd program, which is still started by the main init script. Not that the "cli" program that you're locked into offers much anyway. The reduced_data_model.xml file does have a setting which looks like it enables telnet but the default setting indicates it's enabled, there is also some sort of access control list settings for allowing certain IP addresses access to certain management interfaces.
--- End quote ---
Now that is an interesting point. I mentioned in the other thread that when I first updated the firmware I was able to get telnet access to the CLI.
But now I cant.
--- Quote ---I'll try to write a small Java program to get the few extra stats that are available via these HTTP POST methods, which should be easier than fiddling about with curl, text files and shell scripts / batch files.
--- End quote ---
That would be great if you could. Im sure anyone with the TD-W8970 / TD-W8980 / TD-W9980 would appreciate it :)
kitz:
--- Quote ---Now that is an interesting point. I mentioned in the other thread that when I first updated the firmware I was able to get telnet access to the CLI.
But now I cant.
--- End quote ---
Woah... Im in :clap:
I thought about what I could have done differently and the only thing I could think was me swapping the ethernet cable from this PC in between the TPLink and the Zyxel.
I know the diagnostic tool sent to me from TPLink only works via LAN1 so thought Id try swapping ports. I was on LAN1 from which I cant get access. Swapped to LAN4 and still no telnet access.. tried from LAN2 LAN3. success!!!!
--- Quote ---there is also some sort of access control list settings for allowing certain....
--- End quote ---
Could there actually be anything in there that says eth1 ?
---------
Edited to add.
I was just switching cables without looking at the tiny print underneath which actually says LAN3 - not 2.
and having just seen this. It could be any eth'x' that you may be looking for.
adslmax:
well spot kitz amazing LAN 2 port will work! thanks for let me know. Where did u get diagnostic tool from?
adslmax:
IP="192.168.1.1"
AUTH="YWRtaW46cGFzc3dvcmQ="
curl --data-binary "@td-w8970-adsl-stats-post-all.txt" --referer=http://${IP}/ --header "Cookie: Authorization=Basic ${AUTH}" --header "Content-Type: text/plain; charset=UTF-8" "http://${IP}/cgi?1&5"
Sorry don't understand that bit. How to access it?
ejs:
Rename StatPOSTer.zip to StatPOSTer.jar and then you can run it by double clicking it in Windows, or by running "java -jar StatPOSTer.jar" from a command prompt / Linux terminal.
If choosing TD-W9980 for the model doesn't actually work, since I can't test that, then choosing TD-W8970 might work, it'll only be missing things like the VDSL profile value.
If you get a HTTP 500 - Internal Server Error, just click the same button again.
To use the bit for reading or writing settings, you'll need to extract everything in the firmware .bin file with binwalk, and refer to the /etc/reduced_data_model.xml file.
Don't blame me if you break your router using this program. It's called StatPOSTer because it works by making HTTP POST requests, in a similar fashion as the router's own config web pages do.
The few lines of shell script that adslmax quoted above was far less effort to write, and does pretty much the same thing, if you are happy using a command line.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version