Discussion:
[rancid] Small diff problem
Dan Massey
2009-02-03 14:18:44 UTC
Permalink
Hi List

Im new to Rancid, so forgive my lack of understanding please. When I do a
'show run' on the router I get the 'Last configuration change' (shown
below), however this info is not included in the diff from rancid.

Is there a way to ensure this is included?

==== EXAMPLE ====
Current configuration : 15576 bytes
!
! Last configuration change at 22:22:23 GMT Mon Feb 2 2009 by abc
! NVRAM config last updated at 04:18:01 GMT Tue Feb 3 2009
!
version 12.3
no parser cache
service tcp-keepalives-in
Etc...
==== END ====


Thanks for your help

Dan
Gconnect
Daniel Medina
2009-02-03 16:43:46 UTC
Permalink
Post by Dan Massey
Im new to Rancid, so forgive my lack of understanding please. When I do a
'show run' on the router I get the 'Last configuration change' (shown
below), however this info is not included in the diff from rancid.
Is there a way to ensure this is included?
You could comment out (with "#")

/^! (Last configuration|NVRAM config last)/ && next;

in your rancid script.

The reason these lines are skipped is to avoid "false diffs", as the lines
could change because someone entered configure mode without actually changing
anything. If you're using that to attribute a change to a particular person
you may also find that you're picking up changes in the diffs made by someone
else as well.

See the threads at

http://www.shrubbery.net/pipermail/rancid-discuss/2008-September/003254.html
http://www.shrubbery.net/pipermail/rancid-discuss/2008-September/003255.html

for some more info.
Post by Dan Massey
==== EXAMPLE ====
Current configuration : 15576 bytes
!
! Last configuration change at 22:22:23 GMT Mon Feb 2 2009 by abc
! NVRAM config last updated at 04:18:01 GMT Tue Feb 3 2009
!
version 12.3
no parser cache
service tcp-keepalives-in
Etc...
==== END ====
--
Daniel Medina
Loading...