[rancid] HP procurve 2910 stacked
hamelin marc
marchamelin66 at gmail.com
Fri Dec 6 10:06:04 UTC 2013
Hello,
for rancid with stack, I have an answer with this patch for hlogin (lines
449-478) :
-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
> }
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20131206/8cd1e295/attachment.html>
More information about the Rancid-discuss
mailing list