[rancid] xrrancid on cisco IOS-XR

Bryan registration at myplaceinspace.com
Fri Jul 1 21:09:49 UTC 2011


I am still having issues w/rancid backing up cisco IOS-XR.  This is version Cisco IOS XR Software, Version 3.9.0[00].  I using the patched expect strait from the ftp on shrubbery site.  I can run “xrrancid –d myrouter” and the config is download completely to the current working directory.  However if I let rancid run it normally or do a “rancid-run mygroup” only have the config is downloaded before I get “Connection closed by foreign host.” right in the middle of the config.  At the top of the config I get “RANCID-CONTENT-TYPE: cisco-xr” and according to what commands are being run I don’t understand why I can run it manually and it work but letting rancid run it and it only downloads part of the config.  Both runs manually and automatically are using the same user and same ENV variables.  When it stops in the middle it doesn’t always stop at the same spot (same length).  I can “rancid-run ASR” 5 times and 3 of the times it stop in the same spot and 2 times it stop a few lines before or after.  Any help would be appreciated.


>From a normal run:

rancid     409 30383  0 16:59 pts/1    00:00:00 /bin/sh /usr/local/rancid/bin/rancid-run ASR
rancid     410   409  0 16:59 pts/1    00:00:00 /bin/sh /usr/local/rancid/bin/rancid-run ASR
rancid     414   410  0 16:59 pts/1    00:00:00 /bin/sh /usr/local/rancid/bin/control_rancid ASR
rancid     449   414  0 16:59 pts/1    00:00:00 /usr/bin/perl /usr/local/rancid/bin/par -q -n 10 -c rancid-fe {} /usr/local/rancid/var/ASR/routers.up
rancid     450   449  0 16:59 pts/1    00:00:00 sh -c (rancid-fe myrouter:cisco-xr)
rancid     451   449  0 16:59 pts/1    00:00:00 sh -c (rancid-fe myrouter2:cisco-xr)
rancid     452   450  0 16:59 pts/1    00:00:00 /usr/bin/perl /usr/local/rancid/bin/xrrancid myrouter
rancid     453   451  0 16:59 pts/1    00:00:00 /usr/bin/perl /usr/local/rancid/bin/xrrancid myrouter2
rancid     454   452  0 16:59 pts/1    00:00:00 sh -c clogin -t 90 -c "terminal exec prompt no-timestamp;show running-config" myrouter </dev/null > myrouter.raw 2>&1
rancid     455   453  0 16:59 pts/1    00:00:00 sh -c clogin -t 90 -c "terminal exec prompt no-timestamp;show running-config" myrouter2 </dev/null > myrouter2.raw 2>&1
rancid     457   454  0 16:59 pts/1    00:00:00 /usr/bin/expect -- /usr/local/rancid/bin/clogin -t 90 -c terminal exec prompt no-timestamp;show running-config myrouter
rancid     458   455  1 16:59 pts/1    00:00:00 /usr/bin/expect -- /usr/local/rancid/bin/clogin -t 90 -c terminal exec prompt no-timestamp;show running-config myrouter2
rancid     463   457  0 16:59 pts/3    00:00:00 telnet myrouter

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


More information about the Rancid-discuss mailing list