[rancid] Rancid "stuck" when grabbing configs

Gary T. Giesen giesen at snickers.org
Mon Mar 31 14:59:33 UTC 2008


I have a problem with some new hosts I've added to rancid (2.3.2a7
w/usercmd patch) in that rancid seems to get stuck on one particular
line in the config. This has happened with about 30% of the new hosts
I've added. There doesn't seem to be a commonality between IOS
versions, (I've expeperienced the problem in 12.3(8) and 12.4(17)) .
The only commonality seems to be that it gets stuck when listing the
interfaces. The interface it gets stuck on is not consistent (it could
be Serial, Ethernet, etc). The line for the interface is listed over
and over, I have several configs that are 20 M when they should be
more like 4K.

Note that rancid never completes getting the rest of the config, just
thousands and thousands of lines of the interface. See example below:

!RANCID-CONTENT-TYPE: cisco
!
!
!Memory: nvram 191K
!
!
!
!Image: Software: C1841-ADVIPSERVICESK9-M, 12.4(17), RELEASE SOFTWARE (fc1)
!Image: Compiled: Fri 07-Sep-07 15:27 by prod_rel_team
!Image: flash:c1841-advipservicesk9-mz.124-17.bin
!
!ROM Bootstrap: Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
!
!
!Flash: -#- --length-- -----date/time------ path
!Flash: 1     23476236 Jan 25 2008 12:45:12 -05:00
c1841-advipservicesk9-mz.124-17.bin
!Flash: 8454144 bytes available (23478272 bytes used)
!
!Flash: nvram: Directory of nvram:/
!Flash: nvram:   186  -rw-        2086                    <no date>
startup-config
!Flash: nvram:   187  ----        1962                    <no date>
private-config
!Flash: nvram:   188  -rw-        2086                    <no date>
underlying-config
!Flash: nvram:     1  -rw-         137                    <no date>
ifIndex-table
!Flash: nvram:     2  ----          12                    <no date>
persistent-data
!Flash: nvram: 196600 bytes total (190452 bytes free)
!
!Interface: FastEthernet0/0, GT96K FE ADDR: 632C9568, FASTSEND:
61BEEA20, MCI_INDEX: 0
!Interface: FastEthernet0/1, GT96K FE ADDR: 632D6850, FASTSEND:
61BEEA20, MCI_INDEX: 0
!Interface: Serial0/0/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
!Interface: Serial0/1/0, GT96K with Integrated FT1 CSU/DSU module
...

A (sanitized) config snippet below:

# Cusotmer - Central Router
add user        customer.dom.tld     rancid-user
add password    customer.dom.tld     rancid-pass
add autoenable  customer.dom.tld     1
add method      customer.dom.tld     ssh

# Customer - CPE (via Central Router)
add method              customer-cpe             {usercmd}
add usercmd             customer-cpe             {clogin} {customer.dom.tld}
add usercmd_chat        customer-cpe             {#} {telnet
172.16.12.34 /vrf CUSTOMER\r} {User Access Verification\r} {}
add user                customer-cpe             rancid-user
add password            customer-cpe             rancid-pass
add autoenable          customer-cpe             1


Note that 'clogin customer-cpe' works just fine and doesn't show any
issues. Anyone have *any* ideas what this might be?


More information about the Rancid-discuss mailing list