[rancid] Rancid doesn't update some files- SOLVED

Jevos, Peter Peter.Jevos at oriflame.com
Tue Mar 29 15:46:44 UTC 2011


Thank you , I disabled ACL sort and it is working now : )
Have a nice day
pet

From: lavermil at gheek.net [mailto:lavermil at gheek.net] On Behalf Of Lance Vermilion
Sent: Tuesday, March 29, 2011 5:36 PM
To: Jevos, Peter
Subject: Re: [rancid] Rancid doesn't update some files

It looks like you are seeing the effects of the ACLs being sorted. I think there is an option in the rancid.conf to turn off ACL sorting. I am not sure if you turn it off if the "seq <num>" will come back. I would try turning it off and see what happens.
On Tue, Mar 29, 2011 at 8:30 AM, Jevos, Peter <Peter.Jevos at oriflame.com<mailto:Peter.Jevos at oriflame.com>> wrote:
Thank you for your answer Lance
Actually there is a big difference between these files, e.g in content. Here is example

.new file:
ip prefix-list DENY-2-BGP deny 192.3.0.0/16<http://192.3.0.0/16> le 25
ip prefix-list DENY-2-BGP deny 192.6.100.0/24<http://192.6.100.0/24>
ip prefix-list DENY-2-BGP deny 192.196.0.0/16<http://192.196.0.0/16> le 25
ip prefix-list DENY-2-BGP permit 192.0.0.0/8<http://192.0.0.0/8>
!
ip prefix-list LAN-NTT permit 192.10.0.0/20<http://192.10.0.0/20> le 24
ip prefix-list LAN-NTT permit 192.10.1.0/24<http://192.10.1.0/24>
ip prefix-list LAN-NTT permit 192.10.16.0/21<http://192.10.16.0/21> le 24
ip prefix-list LAN-NTT permit 192.10.249.0/24<http://192.10.249.0/24> le 30
ip prefix-list LAN-NTT permit 192.135.0.0/20<http://192.135.0.0/20> le 24
ip prefix-list LAN-NTT permit 192.135.0.0/21<http://192.135.0.0/21> le 24
ip prefix-list LAN-NTT permit 192.135.1.0/24<http://192.135.1.0/24>

********************************
.raw file
ip prefix-list DENY-2-BGP seq 10 deny 192.6.100.0/24<http://192.6.100.0/24>
ip prefix-list DENY-2-BGP seq 20 deny 192.3.0.0/16<http://192.3.0.0/16> le 25
ip prefix-list DENY-2-BGP seq 30 deny 192.196.0.0/16<http://192.196.0.0/16> le 25
ip prefix-list DENY-2-BGP seq 100 permit 192.0.0.0/8<http://192.0.0.0/8>
!
ip prefix-list LAN-NTT seq 10 permit 192.147.0.0/22<http://192.147.0.0/22> le 24
ip prefix-list LAN-NTT seq 20 permit 192.147.1.0/24<http://192.147.1.0/24>
ip prefix-list LAN-NTT seq 30 permit 192.147.4.0/22<http://192.147.4.0/22> le 24
ip prefix-list LAN-NTT seq 40 permit 192.135.1.0/24<http://192.135.1.0/24>
ip prefix-list LAN-NTT seq 50 permit 192.135.0.0/20<http://192.135.0.0/20> le 24
ip prefix-list LAN-NTT seq 60 permit 192.147.249.0/24<http://192.147.249.0/24> le 30
ip prefix-list LAN-NTT seq 70 permit 192.135.249.0/24<http://192.135.249.0/24> le 30
ip prefix-list LAN-NTT seq 80 permit 192.135.16.0/20<http://192.135.16.0/20> le 24
ip prefix-list LAN-NTT seq 90 permit 192.135.32.0/20<http://192.135.32.0/20> le 24

The .raw file is u to date, no idea how the .new file was created
I'm using newest rancid version and cisco 3825

thanks

From: lavermil at gheek.net<mailto:lavermil at gheek.net> [mailto:lavermil at gheek.net<mailto:lavermil at gheek.net>] On Behalf Of Lance Vermilion
Sent: Tuesday, March 29, 2011 5:12 PM
To: Jevos, Peter
Subject: Re: [rancid] Rancid doesn't update some files

What do you mean is not correct. what are you seeing as the difference?

A thought on how to use the proper command on the proper IOS devices types. I.E ASAs have a slightly different command than routers for somethings.

If a device that is running rancid also has SNMP access to the routers/switches/etc you could certainly do a snmpget for the sysoid and then have rancid use the proper list of commands. To me this is the most straight forward to make sure you aren't running commands that aren't needed/supported on devices.
On Tue, Mar 29, 2011 at 8:00 AM, Jevos, Peter <Peter.Jevos at oriflame.com<mailto:Peter.Jevos at oriflame.com>> wrote:

Hi
i'm using rancdid for a months

however some routers were suddenly stoped to updating
I'm using the comnnand 'show configuration' to download the config

when i run ./clogin command with the show config commnand, it displays cuurent config

However when i run rancid-run, it stores not a current config and shows no changes
Part of the rancid file is:
  #       {'show vlan'                    => 'ShowVLAN'},
#       {'show vlan-switch'             => 'ShowVLAN'},
#       {'show debug'                   => 'ShowDebug'},
       {'more system:running-config'   => 'WriteTerm'},        # ASA/PIX
       {'show configuration'           => 'WriteTerm'},
       {'write term'                   => 'WriteTerm'},

Where can be a problem?
In rancid or CVS ?

thanks

pet
I've found out, that when I debug it with ./rancid command, it creates .new and .raw file

.raw file is correct, but the .new file is not

What does it mean?

thanks
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net<mailto:Rancid-discuss at shrubbery.net>
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20110329/2fd7a264/attachment.html>


More information about the Rancid-discuss mailing list