#!/usr/bin/expect -f
log_file -noappend events
spawn -noecho ssh jgrados@63.149.39.238
expect "password:"
send "Th30P1an1st0\r"
expect "RTR.KENOSHA\>"
send "en\r"
expect "password:"
send "u641rgjFx8YdqUQEG4Z9\r"
expect "*#"
send "conf t\r"
expect "*#"
#send "crypto map bluestar local-address Loopback13\r"
#expect "*#"
send "int Tunnel 60\r "
expect "*#"
send "shutdown\r"
expect "*#"
send "int Tunnel 17\r "
expect "*#"
send "no shutdown\r"
expect "*#"
send "exit\r"
expect "*#"
send "exit\r "
expect "*#"
expect eof
exit
No hay comentarios.:
Publicar un comentario