I have a very simple script to set the time on my CSUs but I have a problem when telnetting to them. The first telnet attempt sometimes fails but always works on the second try. Is there a way to repeat the connectmanual TELNET command if it does not see the waitfor "password:^M^J"?
Much appreciated
proc main
connectmanual TELNET "XXX.XXX.XXX.XXX"
transmit "^M"
waitfor "password:^M^J"
transmit "XXXXXX^M"
waitfor " MM> "
pause 1
transmit "eps: XXXXXX^M"
pause 3
transmit "st:"
transmit $Time24
transmit "^M"
pause 1
transmit "^d"
Much appreciated
proc main
connectmanual TELNET "XXX.XXX.XXX.XXX"
transmit "^M"
waitfor "password:^M^J"
transmit "XXXXXX^M"
waitfor " MM> "
pause 1
transmit "eps: XXXXXX^M"
pause 3
transmit "st:"
transmit $Time24
transmit "^M"
pause 1
transmit "^d"