log_file -noappend events
spawn -noecho telnet 192.168.200.1
expect "password:"
send "KLB3isco\r"
expect "RTR.CHICAGO\>"
send "en\r"
expect "password:"
send "basw6phex46echuk5P\r"
expect "RTR.CHICAGO\#"
send "copy run tftp\r"
expect "*?"
send "192.168.254.33\r"
expect "*?"
send "rtr.chicago-confg\r"
expect "*copied*\#"
send "exit\r"
expect eof
exit
Note que 192.168.254.33 es nuestro linux con el servicio tftp en escucha.
No hay comentarios.:
Publicar un comentario