[rancid] h3clogin
N K Krishnan
nkkrishnan at gmail.com
Mon Feb 21 22:06:24 UTC 2011
ran into the same problem and after staring at the debug output for a while,
moved the sending of the "\r" to after the expect block.
# we are logged in, now figure out the full prompt
# send "\r"
expect {
-re "\[\r\n]+" { exp_continue; }
-re "^.+$prompt" { set junk $expect_out(0,string);
regsub -all "\[\]\[]" $junk {\\&} prompt;
}
-re "^.+> \\\(enable\\\)" {
set junk $expect_out(0,string);
regsub -all "\[\]\[]" $junk {\\&} prompt;
}
}
send "\r"
and that seemed to have the desired result.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20110221/c1cdaabd/attachment.html>
More information about the Rancid-discuss
mailing list