My question is i'm trying to run a .ttl with SSH. What i want this to do is login and do major changes to Enterasys Routers (over 400). I have made one for telnet but the code is not recognized when i use SSH. I want to have a pool of IP address and once it gets done with one router it goes to the next and the next and so on. here is my code for telnet. Please Help!!!
; Sample macro for Tera Term
; Telnet login
; start logging to confirm it worked
logopen 'enterasysresults.log' 1 0
; open txt file of ip numbers
fileopen fhandle 'ipnum' 0
; if EOF close file
if result goto fclose
; setup looping routine
:loop
;read ip file until EOF
filereadln fhandle openip
if result goto fclose
; connect Tera Term to ip
connect openip
;append to logfile until script is complete
logopen 'enterasysresults.log' 1 1
; set username & pw prompts & values
UsernamePrompt = 'Username:'
Username = 'XXXXXXXXX'
PasswordPrompt = 'Password:'
Password = 'XXXXXXX'
Finiprompt = 'Matrix E7 Platinum(su)->'
; login
wait UsernamePrompt
sendln Username
wait PasswordPrompt
sendln Password
; OK, login complete.
; setup defaults & clrscreen
timeout = 1
; wait for prompt & send commands...
wait Finiprompt
sendln 'en'
sendln 'show run'
sendln ' '
sendln ' '
sendln ' '
;this line should wait for prompt again & then continue
;but it appears the timeout is expiring instead
waitln Finiprompt
; go to next ip
logwrite #13#10#13#10
logwrite openip
logwrite ' done'#13#10
logclose
closett
goto loop
:fclose
fileclose fhandle
