Help regarding Telnet scripting for Router Reboot

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
SNiP3R
Newbie
Posts: 2
Joined: Tue Jul 03, 2007 9:36 pm

Help regarding Telnet scripting for Router Reboot

Post by SNiP3R » Tue Jul 03, 2007 9:46 pm

hi guys , i wa spreviously using TST (telnet scripting tool) in XP for modem reboot from telnet .


now i have migrated to Vista and somehow the script i have for modem reboot doesnt work anymore in Vista ( i have enabled Telnet in Vista as well)

i have downloaded Macro Scheduler , and its proabably the only thing that will work for me now !


this was the commands i used in TST10 , and used this script to reboot the router via task scheduler :-

----------------------------------------------

192.168.1.1 23
WAIT "Login"
SEND "admin\m"
WAIT "Password"
SEND "12345\m"
WAIT "->"
SEND "12\m"
WAIT "==>"
SEND "1\m"
WAIT "The system shell is being reset. Please wait..."

---------------------------------------------------


i would really appreciate if someone can adjust the commands , so that it functions inside macro scheduler (as i am not familiar how to put to these commands inside macro scheduler) so that macro scheduler can reboot my modem from telnet .

Thanks in Advance !

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Jul 03, 2007 10:18 pm

Should be something like this:

Code: Select all

TelnetConnect>192.168.1.1,23,hTN
TelnetWaitFor>hTN,Login,5,r
TelnetSend>hTN,admin%CR%
TelnetWaitFor>hTN,Password,5,r
TelnetSend>hTN,12345%CR%
TelnetWaitFor>hTN,->,5,r
TelnetSend>hTN,12%CR%
TelnetWaitFor>hTN,==>,5,dirlist
TelnetSend>hTN,1%CR%
TelnetWaitFor>hTN,The system shell is being reset. Please wait...,5,dirlist
TelnetClose>hTN
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

SNiP3R
Newbie
Posts: 2
Joined: Tue Jul 03, 2007 9:36 pm

Post by SNiP3R » Tue Jul 03, 2007 10:26 pm

a million thanks mate !!!!!!!!!! it worked !!!!!!!!!! :D

Thank God for u and this software i am able to restart my modem again in this crappy Vista :lol:

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts