Discussion:
[rancid] Patch for Cisco models that include "Time:" in "WriteTerm"
Tom Limoncelli
2013-12-30 16:46:35 UTC
Permalink
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
Tom Limoncelli
2013-12-30 16:48:39 UTC
Permalink
P.S. The affected models were all Nexus devices.
heasley
2013-12-30 17:19:34 UTC
Permalink
Post by Tom Limoncelli
P.S. The affected models were all Nexus devices.
nexus should be type cisco-nx in router.db, not cisco.

Loading...