Toto je starší verze dokumentu!
Cisco - různé
zálohování konfigurace skriptem
#!/usr/bin/expect -f set timeout 20 # tftp server set tftp "ip.ad.re.sa" # router user name set name "admin" # router password set pass "heslo" # start telnet spawn telnet [lindex $argv 0] # send username & password expect "Username:" send "$name\r" expect "Password:" send "$pass\r" expect "#" send "copy running-config tftp://$tftp/sw-[lindex $argv 0].cfg\r" expect "?" send "\r" expect "?" send "\r" expect "#"
