[rancid] Re: Dell Switch Errors
Jeremy Singletary
jeremys at rickyninja.net
Wed Jun 30 20:35:58 UTC 2010
On 06/30/10, john heasley <heas at shrubbery.net> said:
> Wed, Jun 30, 2010 at 01:08:16PM -0700, Jeremy Singletary:
> > On 06/23/10, Willie Bollinger <willie at qis.net> said:
> > > WriteTerm: qos basic
> > > WriteTerm: qos trust cos
> > > WriteTerm: dsw1-cc#exitConnection to 10.10.111.2 closed by foreign host.
> >
> > The line above leads me to believe that the regex is failing because the
> > regex expects the last character on the line to be the t in exit.
> >
> > drancid:
> > if (/$prompt\s?exit$/) { warn "left WriteTerm on: $_"; $clean_run=1;last; }
> >
> > also in drancid:
> > if (/[>#]\s?exit$/) {
> > $clean_run=1;
> > last;
> > }
> >
> > Try removing the $ after the word exit in one or both of those regex conditions.
>
> you should try it like the extreme script (xrancid) to be safer.
Thanks, I'll copy that regex from xrancid.
More information about the Rancid-discuss
mailing list