Hi,
There can be 2 reasons why your macro is not able to connect, assuming that remote host is reachable and listens on port 23.
-
connect string does not work
- login information is not correct.
You are using the shortest syntax of
connect string trying to establish telnet connection. Depending on connection configuration in teraterm.ini file it might not work in some cases. For example if the last connection saved in teraterm.ini was either SSH or via COM port the
connect command with such syntax will fail. I would recommend to use the following line instead:
connect 'xxx.xxx.xxx.xxx:23 /nossh'
This format will force TeraTerm to use telnet connection through port 23.
Now about login information. Your macro sends 'adm' as user name and the password from passwd.dat file. Make sure the password you stored in passwd.dat file is correct. You can temporarily add line
delpassword 'passwd.dat' 'adm'
at the top of your script to erase saved password and re-enter it.
Few more comments:
You are introducing PasswordPrompt and PasswordPrompt2 variables. Try to name your variables the way that they won't confuse you when you look into your code few months later. I'd rename PasswordPrompt2 into LoginPrompt. As for the strings assigned to these 2 variables, the better practice is to drop the first letter in words
Password and
login while using them as parameters of
wait command. This will make your script independent of whether the first letter in these prompts sent to you by remote host is in upper or lower case.
I would also add another
wait command before
and
right after
connect