[rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing

Hughes, Doug Douglas.Hughes at DEShawResearch.com
Thu Aug 1 15:05:56 UTC 2013


Try this..
Edit f10rancid
Go to sub ShowFlash

If you want to just remove the '..' directory that is triggering:
Right after one of the two 'next if' lines, add another:
next if (/\.\.$/);

Or if you want to remove all drwx directories (they don't add much value. We mostly care about the files)
next if (/drwx/);

From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Thomas Vachon
Sent: Thursday, August 01, 2013 9:52 AM
To: heasley
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing

No better. Still happens on ever rancid-run.  I tried moving it to a non-terminating regex and adding a \n with no luck.  IT seems to trip up on the date.  Here is the exact output of dir flash:

Directory of flash:

 1  drwx       4096   Jan 01 1980 00:00:00 +00:00 .
 2  drwx       2048   Aug 02 2013 05:36:24 +00:00 ..
 3  drwx       4096   Mar 30 2012 18:16:28 +00:00 TRACE_LOG_DIR
 4  drwx       4096   Mar 30 2012 18:16:28 +00:00 CORE_DUMP_DIR
 5  d---       4096   Mar 30 2012 18:16:28 +00:00 ADMIN_DIR
 6  drwx       4096   Jul 31 2013 11:55:02 +00:00 CONFIG_TEMPLATE
 7  -rwx      16712   Jul 31 2013 11:53:56 +00:00 startup-config
 8  drwx       4096   Jul 31 2012 09:38:16 +00:00 RUNTIME_PATCH_DIR
 9  -rwx      16351   Jun 19 2013 10:26:30 +00:00 startup-config.bak

Looking at dir flash:/.. it is actually the / mount of the FTOS OS, which is getting modified by a log entry for the login as far as I can tell.



--
Thomas Vachon
Principal Operations Architect
session M
+1-617-963-8993 x7104
vachon at sessionm.com<mailto:vachon at sessionm.com>

On Thu, Aug 1, 2013 at 9:28 AM, heasley <heas at shrubbery.net<mailto:heas at shrubbery.net>> wrote:
Thu, Aug 01, 2013 at 08:39:10AM -0400, Thomas Vachon:
> It seems in Force10 FTOS9 the mod time on  ".." on the flash changes every
> time a login happens.  So everytime RANCID logs in, it triggers an alert.
>  Has anyone else seen this and stopped it from triggering? Just to note, I
> am not seeing this on the FTOS 8 switches (S55) only the FTOS 9 right after
> upgrade (S4810P stacked). Below is a few examples.
>
> ===================================================================
> retrieving revision 1.41
> diff -u -4 -r1.41 192.168.124.199
>  !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS =  0.0.0.0
>   !Boot Variables: Reload Mode =  normal-reload
>   !
>   !Flash: flash:   1  drwx       4096   Jan 01 1980 00:00:00 +00:00 .
> - !Flash: flash:   2  drwx       2048   Aug 02 2013 01:53:36 +00:00 ..
> + !Flash: flash:   2  drwx       2048   Aug 02 2013 02:53:36 +00:00 ..
>
>   !Flash: flash:   3  drwx       4096   Mar 30 2012 18:16:28 +00:00
> TRACE_LOG_DIR
>   !Flash: flash:   4  drwx       4096   Mar 30 2012 18:16:28 +00:00
> CORE_DUMP_DIR
>   !Flash: flash:   5  d---       4096   Mar 30 2012 18:16:28 +00:00
> ADMIN_DIR
>   !Flash: flash:   6  drwx       4096   Jul 31 2013 11:55:02 +00:00
> CONFIG_TEMPLATE
>
> --------------------
>
> ===================================================================
> retrieving revision 1.42
> diff -u -4 -r1.42 192.168.124.199
> @@ -27,9 +27,9 @@
>   !Boot Variables: BOOT INTERFACE GATEWAY IP ADDRESS =  0.0.0.0
>   !Boot Variables: Reload Mode =  normal-reload
>   !
>   !Flash: flash:   1  drwx       4096   Jan 01 1980 00:00:00 +00:00 .
> - !Flash: flash:   2  drwx       2048   Aug 02 2013 02:53:36 +00:00 ..
> + !Flash: flash:   2  drwx       2048   Aug 02 2013 03:53:36 +00:00 ..
>
>   !Flash: flash:   3  drwx       4096   Mar 30 2012 18:16:28 +00:00
> TRACE_LOG_DIR
>   !Flash: flash:   4  drwx       4096   Mar 30 2012 18:16:28 +00:00
> CORE_DUMP_DIR
>   !Flash: flash:   5  d---       4096   Mar 30 2012 18:16:28 +00:00
> ADMIN_DIR
>   !Flash: flash:   6  drwx       4096   Jul 31 2013 11:55:02 +00:00
> CONFIG_TEMPLATE
Try

Index: bin/f10rancid.in<http://f10rancid.in>
===================================================================
--- bin/f10rancid.in<http://f10rancid.in>    (revision 2719)
+++ bin/f10rancid.in<http://f10rancid.in>    (working copy)
@@ -336,6 +336,8 @@
        return(1) if /(Open device \S+ failed|Error opening \S+:)/;

        /Directory of/ && next;
+       # . & ..
+       / \.{1,2}$/ && next;

        # clean up totals line
        if (/.* (\d+) bytes total/) {
Index: CHANGES
===================================================================
--- CHANGES     (revision 2719)
+++ CHANGES     (working copy)
@@ -1,4 +1,6 @@
 3.0a3
+       f10rancid: skip . & ..
+
        *login: change -c handling of ;'s for escaping like \;

        rancid.conf: add MAILSPLIT to split large diff mail by kilobytes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130801/fdda0eda/attachment.html>


More information about the Rancid-discuss mailing list