[rancid] "Stuttering" and line-ending mangling on ASR9000?
Howard Jones
howie at thingy.com
Thu Jun 15 15:16:05 UTC 2017
Good catch :-)
I guess I was seeing two competing processes writing to the same temp
file...
Thanks Dan!
On 15/06/2017 13:06, Dan Anderson wrote:
> Do you have multiple entries in your router.db file for the same
> device (one as type cisco and another as type cisco-xr)?
>
> --
> Dan
>
> On Jun 15, 2017, 7:33 AM -0400, Howard Jones <howie at thingy.com>, wrote:
>> We have an ASR9001 that registers a change a few times a day that looks
>> like this:
>>
>>
>> --- bgp1 (revision 17595)
>> +++ bgp1 (revision 17596)
>> @@ -1,6 +1,4 @@
>> -!RANCID-CONTENT-TYPE: cisco
>> -!
>> -!Ch!Chassis type: ASR-9001 - a ASR9K Series router
>> +!RANCID-CONTENT-TYPE: cisco-xr!Ch!Chassis type: ASR-9001 - a ASR9K
>> Series router
>> !CPU: P4040
>> !
>> !Memory: main 8388608K
>>
>>
>> Or back the other way. That is, the line endings of the internally
>> generated RANCID content seem to be changing. Also, there is a stutter
>> in there (!Ch!Chassis) in both variations. Also, the content-type
>> switches between cisco and cisco-xr (or is truncated perhaps).
>>
>> Any ideas on where this might be coming from? It would have to be
>> between bin/rancid and lib/rancid/rancid.pm, wouldn't it?
>>
>> This is with rancid 3.6.2, plus a few local patches, but nothing to do
>> with output processing (file naming only). Same install has a couple
>> hundred other devices (no other IOS XR though, I don't think) all
>> working happily.
>>
>> Thanks in advance,
>>
>> Howard
>>
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-discuss at shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
More information about the Rancid-discuss
mailing list