[rancid] Re: cisco syslog diff
Lance Vermilion
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
that.
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
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20080821/abee3ef5/attachment.html
More information about the Rancid-discuss
mailing list