Discussion:
[rancid] "Stuttering" and line-ending mangling on ASR9000?
Howard Jones
2017-06-15 08:29:16 UTC
Permalink
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
Dan Anderson
2017-06-15 12:06:42 UTC
Permalink
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
Post by Howard Jones
We have an ASR9001 that registers a change a few times a day that looks
--- 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
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Howard Jones
2017-06-15 15:16:05 UTC
Permalink
Good catch :-)

I guess I was seeing two competing processes writing to the same temp
file...

Thanks Dan!
Post by Dan Anderson
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
Post by Howard Jones
We have an ASR9001 that registers a change a few times a day that looks
--- 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
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Loading...