[rancid] Re: Dell Switch Errors

john heasley heas at shrubbery.net
Wed Jun 30 20:17:51 UTC 2010


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.


More information about the Rancid-discuss mailing list