[rancid] end of run not found

'heasley' heas at shrubbery.net
Mon Dec 17 21:28:58 UTC 2018


Sat, Dec 15, 2018 at 01:05:23PM +0000, Wayne Eisenberg:
> There you go. The dell.pm is looking for 
> if (/[>#]\s?exit$/)
> but these switches don't put the exit statement on a separate line (or maybe we don't see it because of the ' tr/\015//d;' statement right before the if statement ). In any case, the end of the session looks like:
> TCO-CORE>exitConnection to tco-core closed.
> 
> So get rid of the $ at the end of the expression, and it works.

cat5rancid does it this way:
    if (/> \(enable\) ?exit(?:$|Connection)/) {
more pedantic...



More information about the Rancid-discuss mailing list