Toto je starší verze dokumentu!


ÚVOD » tajná oblast CLnet » 3comCiscoHuaweiIPv6LinuxMicrosoftNovellRouterboardVMwareostatní instalaceknihovna


04.01.2015 09:55

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 "#"
cisco/ruzne.1325066015.txt.gz · Poslední úprava: 13.03.2020 18:43 (upraveno mimo DokuWiki)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0