Just another problem

Cisco login script

Posted in cisco, tech by Adriano on 12/10/2006

Script em expect para login automático em equipamentos Cisco (troque o username e a senha):

#!/usr/local/bin/expect

spawn telnet $argv
expect "Username:"

send "username\r"
expect "Password:"

send "*******\r"
expect ">"

send "enable\r"
expect "Password:"

send "********\r"
send "term mon\r"

interact


Anúncios