[rancid] Re: cisco syslog diff

Daniel Medina daniel.medina at gmail.com
Thu Aug 21 20:31:23 UTC 2008


On Thu, Aug 21, 2008 at 11:12:46AM -0700, Lance Vermilion wrote:
> the other option is to write some custom pieces to not include or modify the
> command for dir to exclude things you don't want to include.
> 
> dir | e syslog
> 
> something like that. You may have to escape the |, you will need to mess
> with it a little.

 And you'd have to remember to skip over the "bytes total" / "bytes free" which
will also be changing.

 ShowFlash() and DirSlotN() in rancid might be the right places to do this,
updating the INPUT loop, ex:

    next if /\s+syslog$/;   # syslog file size keeps changing
    next if /bytes total/;  # ...which makes the total usage change

or something smarter, if you want to see that the file is present, but don't
care about the updated filesize and timestamp.

-- 
Dan


More information about the Rancid-discuss mailing list