[rancid] Force10 FTOS 9 keeps triggering alerts due to flash mod time changing
heasley
heas at shrubbery.net
Thu Aug 1 13:28:08 UTC 2013
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
===================================================================
--- bin/f10rancid.in (revision 2719)
+++ bin/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
More information about the Rancid-discuss
mailing list