The script for TST10.EXE is
case sensitive and it depends upon the modem. For example my script (for UT-300R2U) is as follows:
Code:
192.168.1.1 23
WAIT "login:"
SEND "admin\m"
WAIT "password:"
SEND "<my_pwd>\m"
WAIT "$"
SEND "reboot\m"
WAIT "$"
Note that I have
login: instead of
Login:, etc. After the login I get a
$ prompt, some routers get a
> prompt - so that needs to be coded.
You must make sure of what the router login wants and code accordingly. To explain the router reboot script:
Line 1:
192.168.1.1 23: This tells TST10 that it should connect to IP address 192.168.1.1 on port number 23 (telnet port)
Line 2:
WAIT "login:": This tells that router will display "login:" as the prompt and it is waiting for input.
Line 3:
SEND "admin\m": This tells TST10 that it should send 'admin' as the input followed by ENTER (\m)
Line 4:
WAIT "password:": This tells that router will display "password:" as the prompt and it is waiting for input.
Line 5:
SEND "<my_pwd>\m": This tells TST10 that it should send '<my_pwd' as the input followed by ENTER (\m)
Line 6:
WAIT "$": This tells that router will display "$" as the prompt and it is waiting for input.
Line 7:
SEND "reboot\m": This tells TST10 that it should send 'reboot' as the input followed by ENTER (\m)
Line 8:
WAIT "$": This tells that router will display "$" as the prompt and it is waiting for input.