[rancid] Re: debug and empty config issue
john heasley
heas at shrubbery.net
Wed Jan 6 19:27:33 UTC 2010
Wed, Jan 06, 2010 at 01:20:35PM -0500, Konstantin Yudayev:
> Hello,
>
> I've recently enabled bug in all bin/*rancid* ($debug = 1) and looks
> like there is an issue with unaccessible devices. If a device is not
> currently available the rancid produces following output in the config
> file (that is a whole file for every "offline" router):
>
> !RANCID-CONTENT-TYPE: erx (or whatever vendor is)
> !
> !
> !
> !
>
> This is obviously a problem because it replaces the existing config with
> this output and once router is back online the actual config will
> replace this file.
>
> I need an advice on how this can be fixed and offline devices will be
> skipped the same way as when debug is disabled.
remove the lines
unlink "$host.new" if (! $debug);
> thank you
>
> - Konstantin
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
More information about the Rancid-discuss
mailing list