rancid 2.2.2 Problem
Andrew Partan
asp at partan.com
Fri Aug 27 15:15:09 UTC 2004
On Thu, Aug 26, 2004 at 10:18:42PM -0700, Len wrote:
> >>I'm using a command file, of which I can literally copy and paste when
> >>logging into the router manually, but when I try to process the command
> >>file it doesn't hangs when adding the following command -
You seem to be running into problems with the prompt changing (enable
prompt, config prompt, config submode prompt, ...). rancid doesn't
handle this very well.
Have you looked at the example expect script cisco-load.exp? Doing
something like that where you are matching your own prompts might
be the way to go.
Or try something like:
clogin -c 'conf t\rint lo0\rip addr 10.0.0.0/32\rend;cop run star'
- i.e.: embed the newlines in the 'command' & rancid will send the
entire multiline command at once & only wait for the enable prompt
at the end.
--asp
More information about the Rancid-discuss
mailing list