[rancid] Cisco ACS 5.5
heasley
heas at shrubbery.net
Tue Apr 29 13:54:54 UTC 2014
Tue, Apr 29, 2014 at 01:57:57PM +0200, Pawe?? Rzepa:
> 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?
the line that you have commented should have consumed the backspaces.
what is the behavior when it fails (hangs, simply fails)? what version
of expect do you have? what version of rancid?
More information about the Rancid-discuss
mailing list