[rancid] Citrix NetScaler / nsrancid "Last modified" lines

Matthew Walster matthew at walster.org
Fri Jul 12 14:58:02 UTC 2013


Hi Roman,

I for one want to see these "last modified" lines as otherwise I have no
idea when the change occurred -- especially if RANCID is only set to run
once a day or similar and I'm tracking down an issue.

Ideally what would happen is that when a particular syslog line is seen
"commit/saved" etc, then RANCID would run on that device immediately, and
yes, your patch would be a good thing to apply.

Or, as I'm not familiar with that product, could it be that this line is
changing every single time RANCID runs and not just when there has been a
config change?

Cheers,


Matthew Walster




On 12 July 2013 15:05, Roman Hochuli <roman.hochuli at nexellent.ch> wrote:

> Hello All
>
> > So I decided to filter out that line. Maybe others would be interested
> > as well. So here is the diff:
>
> Actually, I found a slightly quicker way:
>
> --snip
> --- nsrancid.ORI        2013-07-12 15:14:06.000000000 +0200
> +++ nsrancid    2013-07-12 15:55:34.000000000 +0200
> @@ -180,6 +180,7 @@
>         next if (/^Can\'t find object or class named \"\-all\"\s*$/);
>         next if (/lock-address .*$/);
>         next if (/^\# *uptime +\d+\s*$/);
> +       next if (/^# Last modified/);
>         if (/community label /) {
>             if ($filter_commstr) {
>                 $_ =~ s/community label .*$/community label <removed>/;
> --snap
>
> Pull-Request @GitHub is open.
>
> --
> Best regards,
> Roman Hochuli
> Operations Manager
>
> nexellent ag
> Saegereistrasse 33
> CH-8152 Glattbrugg
>
> Phone:       +41 44 872 20 00
> Fax:         +41 44 872 20 01
> URL:         www.nexellent.ch
> X-NCC-RegID: ch.nexellent
>
> Imagination is the one weapon in the war
> against reality.
>                     -- Jules de Gaultier
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130712/d394478a/attachment.html>


More information about the Rancid-discuss mailing list