<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY>
Now it creates those semi-empty files even if debug is off. I think we need to remove "$host.new" if run has failed regardless of $debug but I am not sure what would happened if I leave unconditional `<B>unlink "$host.new"`</B>. Please advise.<BR>
<BR>
- Konstantin<BR>
<BR>
On Wed, 2010-01-06 at 11:27 -0800, john heasley wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
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);
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>