[rancid] Cisco ACS 5.5
Paweł Rzepa
pawel.rzepa at gmail.com
Tue Apr 29 11:57:57 UTC 2014
Hi,
I use rancid to download configuration from Cisco ACS. I have adopted
rancid a little and finally got it working. After recent upgrade to
5.5 it stopped gathering configuration.
Investigation showed that the reason was exp_continue in proc
run_commands for -re "\b+" :
proc run_commands { prompt command } {
global do_saveconfig in_proc platform
...
for {set i 0} {$i < $num_commands} { incr i} {
send -- "[subst -nocommands [lindex $commands $i]]\r"
expect {
# -re "\b+" { exp_continue } --------------
MUST HAVE DISABLED IT
-re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
}
-re "^\[^\n\r]*$reprompt." { send_user -- "$expect_out(buffer)"
exp_continue
}
...........
Now I got all the configuration lines, but '\b' is here. How can I
remove all occurrences of '\b' from the buffer before it is printed
out?
Regards,
Pawel Rzepa
More information about the Rancid-discuss
mailing list