How to Retart my TP-Link TD-W9970 via Command Line

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
12

How to Retart my TP-Link TD-W9970 via Command Line

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
13 Reply
Re:How to Retart my TP-Link TD-W9970 via Command Line
2019-10-08 03:44:45

@spaceman5 

 

Hello, this feature is enabled by default, no option to turn it off. 

 

Good day. 

 

 

Nice to Meet You in Our TP-Link Community. Check Out the Latest Posts: Connect TP-Link Archer BE550 to Germany's DS-Lite (Dual Stack Lite) Internet via WAN Archer GE550 - BE9300 Tri-Band Wi-Fi 7 Gaming Router Archer BE800 New Firmware Added Support for EasyMesh in AP Mode, DoH&DoT, and 3-Band MLO Connection Archer AX90 New Firmware Added Support for EasyMesh and Ethernet Backhaul If you found a post or response helpful, please click Helpful (arrow pointing upward icon). If you are the author of a topic, remember to mark a helpful reply as the "Recommended Solution" (star icon) so that others can benefit from it.
  0  
  0  
#12
Options
Re:How to Retart my TP-Link TD-W9970 via Command Line
2021-01-27 15:03:17 - last edited 2021-01-27 15:18:53

@spaceman5 

 

If you are running Linux, install the "expect" package and then you can run the below script to re-set the TD-W9970 V2 router via telnet with just a couple clicks on the script.

 

I have some scripts set up to check for modem internet drop out every 5 minutes.

 

If the checking script can't ping to outside it runs the modem reset script as shown below.

 

 #!/usr/bin/expect


####    Make sure package "expect" is insatlled    ####


###### login and reset the router #####


#If it all goes pear shaped the script will timeout after 20 seconds.
set timeout 20

#This spawns the telnet program and connects it to the variable name
spawn telnet 192.168.1.1

#The script expects login
expect "username:"
#The script sends the user variable
send "admin"
send \n

#The script expects Password
expect "password:"
#The script sends the password variable
send "my_password"
send \n


#This hands control of the keyboard over to you
####interact


#reset the router
send "dev reboot"
send \n

 

 

 

  1  
  1  
#13
Options
Re:How to Retart my TP-Link TD-W9970 via Command Line
2021-01-28 07:04:40 - last edited 2021-01-28 07:05:17

Hi kesz

 

Really cool!

 

Thank you so much

  1  
  1  
#14
Options