ignoring some changes

Yuval Ben-Ari yuvalba at netvision.net.il
Tue Jan 6 13:12:17 UTC 2004


Hi,

I would like to have the option to ignore certain lines that keep
changing every time "write mem" is done on the router.
like "config.text" files on IOS Catalyst's or local user passwords on
certain IOS's.
currently it is done by hack to bin/rancid itself which filters these
lines altogether but I would rather just ignore it during the cvs diff
operation.
Is there an easy place to add regexp of lines that should be ignored
during the diff operation ?

example of unwanted diffs:

@@ -26,9 +26,9 @@
 !
 !Flash: Directory of flash:/
 !Flash:     7  drwx         320   Mar 01 1993 20:17:06
c1100-k9w7-mx.122-13.JA1
+!Flash:     2  -rwx        1951   Mar 01 1993 23:47:13  private-config
 !Flash:     3  -rwx         212   Mar 01 1993 00:10:06  env_vars
-!Flash:     4  -rwx        2589   Mar 01 1993 17:47:38  config.txt
-!Flash:     5  -rwx        1951   Mar 01 1993 17:47:38  private-config
+!Flash:     5  -rwx        2589   Mar 01 1993 23:47:13  config.txt
 !Flash: 7741440 bytes total (4176384 bytes free)
 !
 !


Thanks
Yuval



More information about the Rancid-discuss mailing list