[rancid] Patch for Cisco models that include "Time:" in "WriteTerm"
Tom Limoncelli
tlimoncelli at stackexchange.com
Mon Dec 30 16:46:35 UTC 2013
Some of our switches were getting non-empty diffs every time we ran
RANCID. It turned out they were models that included the current time
when writing the config.
This is while running on CentOS with the rancid-2.3.6-1.el6 package from epel.
This patch solved the problem.
--- a/rancid
+++ b/rancid
@@ -1582,6 +1582,8 @@ sub WriteTerm {
}
tr/\015//d;
}
+ # skip current time
+ /^Time: / && next;
# skip ASA 5520 configuration author line
/^: written by /i && next;
# some versions have other crap mixed in with the bits in the
More information about the Rancid-discuss
mailing list