How to reboot TP-Link router remotely script or app or other

phoenix55

Well-Known Member
Joined
Jun 22, 2007
Messages
278
Reaction score
23
Sometimes our TP Link TD-W8960N ADSL and wireless router at the non-profit organization office goes haywire and needs to be rebooted.

To do this currently, the office staff switch off the power at the wall (which in turn affects the server, routers, network switch and other equipment attached there) or they switch off the router itself (but in doing this they can bump or move cables in the near vicinity which causes downtime for other services).

All round not good for people to be fiddling with that sort of equipment in that manner :-(

Hopefully getting a UPS later in the year but then the router won't be rebooted even if they switch off the wall power so need another solution.

Is there a script or BAT file that can be run remotely from their computers to reboot the router when needed? The router login credentials would need to be encrypted as don't want them knowing this information, too much power to cause havoc in error ;-D

Or is there an Android App that can reboot the router remotely?

Any other ways for end-user / office staff to do this remotely and easily?

Is there a way to schedule the router to be rebooted daily at say 02h00?
 
When you say haywire what exactly do you mean?
The reason I ask is because I had a script to do the reboot on a tp-link as well, but couldnt reboot it remotely because it went haywire
 
When you say haywire what exactly do you mean?
The reason I ask is because I had a script to do the reboot on a tp-link as well, but couldnt reboot it remotely because it went haywire

I think that the cause is most likely when the ADSL line goes down and when it comes up again the router needs to be rebooted. I still need to take some time and log when the problems occur and how often. Lately it's been due to the internet being down because of cable theft
 
They are undoubtedly the most POS routers you will ever find.
What I can tell you from experience is even if you reboot it from telnet that it doesnt sort it out, you have to power it off and then on again. I had about 10 of them at different sites and after having to call people daily to reboot routers I replaced all of them.
You can get plug sockets that are controllable via 3G and string commands but they are seriously expensive and not worth it.
Replace the router, trust me this problem wont go away.
 
I checked and the router has an option for remote access for Telnet

Enable Telnet.
Then from terminal/console/whatever, telnet <ip>
You'll be requested to enter your username & password.
After that try type something like:
list,show,help,commands,?

One of the commands hopefully is something along the lines reset, reboot, etc.
 
They are undoubtedly the most POS routers you will ever find.
What I can tell you from experience is even if you reboot it from telnet that it doesnt sort it out, you have to power it off and then on again. I had about 10 of them at different sites and after having to call people daily to reboot routers I replaced all of them.
You can get plug sockets that are controllable via 3G and string commands but they are seriously expensive and not worth it.
Replace the router, trust me this problem wont go away.

Thanks, I had a TP-Link router at home that also gave issues and needed to be rebooted a number of times. Now has a new ASUS one that works like a dream. May need to budget for new ADSL router soon for work ...
 
Enable Telnet.
Then from terminal/console/whatever, telnet <ip>
You'll be requested to enter your username & password.
After that try type something like:
list,show,help,commands,?

One of the commands hopefully is something along the lines reset, reboot, etc.

Great thanks :)

I'll give the Telnet option and see how it goes ;-D
 
I need to do something similar with my crappy adsl router while waiting for fibre
 
I managed to find this: http://www.howtogeek.com/206620/how-to-automatically-reboot-your-router-the-geeky-way/

I tested and it works :)

Enable Telnet Access on the router
Install Telnet Client on computer / server you want to run script from
Copy and paste code to VBS file
Run VBS file

I'm not sure if it will work if the router is unresponsive or not accessible via the network ...
This was pretty much what I was going to recommend you do :p

Hence starting by asking if Telnet or SSH is available.
You can do that with a batch file also, you don't need VB.
But if the VB script works, then just stick with that.
 
Awesome thanks ;-D

Just to confirm if I want to use bat instead of VB, is the code the same?

Is there a way to hide or encrypt pasdword? Don't want users to see
 
I have a Tenda router (firmware a bit sucky) and use pfSense on a vm as everything but modem and wifi (ADSL modem does this). Gonna just stick a bash script to force reboot it remotely and the wan link will auto-connect (as it does now via pfsense).
 
Top
Sign up to the MyBroadband newsletter
X