There is no way to backup config from other then stack commander from
rancid what i know. If you don't lite to turn of stack function
there is some lines to add in hlogin for answer the switch number promp.
*** hlogin.pre_fix Thu Jan 20 10:21:17 2011
--- hlogin Thu Jan 20 10:13:00 2011
***************
*** 389,408 ****
--- 389,412 ----
# talk to the TACACS server to authenticate you, or if the
# TACACS server is not working, then it will use the enable
# passwd. Or, the router might not have TACACS turned on,
# then it will just send the passwd.
# if telnet fails with connection refused, try ssh
expect {
"Press any key to continue" {
send " "
exp_continue
}
+ "Enter switch number to connect to or <CR>:" {
+ send "\r"
+ exp_continue
+ }
-re "(Connection refused|Secure connection \[^\n\r]+
refused|Connection closed by)" {
catch {close}; catch {wait};
if !$progs {
send_user "\nError: Connection Refused ($prog)\n"; return 1
}
}
"Host is unreachable" {
catch {close}; catch {wait};
send_user "\nError: Host Unreachable!\n"; wait; return 1
}
/Peo
----------------------------------------------------------
Per-Olof Olsson Email: p...@chalmers.se
Chalmers tekniska högskola IT-service
Hörsalsvägen 5 412 96 Göteborg
Tel: 031/772 6738 Fax: 031/772 8660
----------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
Rancid-...@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
no, not yet.
but, thanks for the patch.
> Chalmers tekniska h?gskola IT-service
> H?rsalsv?gen 5 412 96 G?teborg
-re "$p_prompt" {if ![string compare $prog "ssh"] {send -- "$userpswd\r"} else {send -- "$passwd\r"}expect {+ "Enter switch number to connect to or <CR>:" {+ send "0\r"+ exp_continue+ }eof { send_user "\nError: Couldn't login\n";wait;return 1}"Press any key to continue" {send " ";exp_continue}-re "$e_prompt" { send -- "$enapasswd\r" }"$prompt" { set in_proc 0;return 0}}exp_continue}