[rancid] ignoring flash memory changes

Alan McKinnon alan.mckinnon at gmail.com
Wed Jun 19 21:39:31 UTC 2013


On 19/06/2013 20:04, Saulo Zimbaro wrote:
> It´s possible to ignoring memory changes in rancid backups?
> 
> Index: configs/csfw-asa-office01
> ===================================================================
> retrieving revision 1.239
> diff -U 4 -r1.239 csfw-asa-office01
> @@ -30,9 +30,9 @@
>   !Flash:   123  11348300    Feb 21 2011 16:17:54  asdm-621.bin
>   !Flash:     3  4096        Dec 31 2002 22:03:48  log
>   !Flash:    10  4096        Dec 31 2002 22:03:58  crypto_archive
>   !Flash:    11  4096        Dec 31 2002 22:04:32  coredumpinfo
> - !Flash:    12  43          Jun 19 2013 09:00:27  coredumpinfo/coredump.cfg
> + !Flash:    12  43          Jun 19 2013 12:00:33  coredumpinfo/coredump.cfg
>   !Flash:   125  12105313    Feb 21 2011 16:15:12  csd_3.5.841-k9.pkg
>   !Flash:   126  4096        Feb 21 2011 16:15:14  sdesktop
>   !Flash:   133  1462        Feb 21 2011 16:15:14  sdesktop/data.xml
>   !Flash:   127  2857568     Feb 21 2011 16:15:16
>  anyconnect-wince-ARMv4I-2.4.1012-k9.pkg


I don't know of a way to do this that is already built into shipped rancid.

I've always held the view that some things are just not generic enough
or detectable enough to be shipped out to everyone, so you get to
maintain a few forks with your own customization. And there are nowadays
so many IOSes with different behaviours....

You probably want to add something like this to ShowFlash:

  next if (/coredumpinfo\/coredump.cfg\$/);

Untested of course so double check my regexes :-)

Rancid could really benefit from some kind of call-out mechanism where
we can add our own local tweaks and keep them out of the main code, but
unfortunately 2.3.x doesn't have this.

Perhaps a worthy addition to the 3.0 series!

-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list