[rancid] Re: cisco syslog diff
rancid at gheek.net
Thu Aug 21 20:30:55 UTC 2008
Thx Daniel. I haven't had time to look at the code to provide stuff like
On Thu, Aug 21, 2008 at 1:31 PM, Daniel Medina <daniel.medina at gmail.com>wrote:
> 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
> > 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"
> 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
> care about the updated filesize and timestamp.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rancid-discuss