[rancid] Re: Rancid Reports Config Changes when none have taken place

john heasley heas at shrubbery.net
Mon Oct 5 17:23:07 UTC 2009


Mon, Oct 05, 2009 at 12:54:15PM +0100, Shane Kavanagh:
> Hi, Jose
> 
> Thanks for the input, there seems to be no pattern to the event, unless I
> run rancid-run manually then I am guaranteed to get this error. however it
> seems to be from missing "," (commas) in the example below after FA 1/0/8
> the cisco devices reports a comma after it but the archived version does not
> have this comma but then later on I get the reverse. I wonder if its the
> Cisco device going different reports, however the more I look into it, the
> more I can see all my devices been affected.
> 
> - !VLAN: 4    server                           active    Fa1/0/1, Fa1/0/2,
> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11,
> Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2
> + !VLAN: 4    server                           active    Fa1/0/1, Fa1/0/2,
> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8
> + !VLAN:                                                 Fa1/0/9, Fa1/0/10,
> Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15
> + !VLAN:                                                 Fa1/0/16, Gi1/0/2
> 

this is the stupid cisco, not rancid.  you can try this hack for that
problem.

Index: bin/clogin.in
===================================================================
--- bin/clogin.in       (revision 2113)
+++ bin/clogin.in       (working copy)
@@ -878,6 +880,8 @@
        if [ regexp -- ".*> .*enable" "$prompt" ] {
            send "set length 0\r"
            expect -re $prompt  {}
+           send "set width 132\r"
+           expect -re $prompt  {}
            send "set logging session disable\r"
        } else {
            send "terminal length 0\r"

> 2009/10/5 Jose Madrid <jmadrid2 at gmail.com>
> 
> > I have had this issue as well and it seems like its a false positive due to
> > white space.  When I get these, I just discard them.  How often is it
> > happening? If it you can deal with it, I would just leave it alone.  Maybe
> > someone else on here has had luck dealing with this.
> >
> > 2009/10/5 Shane Kavanagh <shane.kavanagh at gmail.com>
> >
> >> Hi all
> >>
> >> I am having an issue with rancid reporting changes to ports in a VLAN when
> >> no changes have taken place.
> >>
> >> Here is an example
> >>
> >> - !VLAN: 4    server                           active    Fa1/0/1, Fa1/0/2,
> >> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8
> >> - !VLAN:                                                 Fa1/0/9,
> >> Fa1/0/10, Fa1/0/11, Fa1/0/12, Fa1/0/13, Fa1/0/15
> >> - !VLAN:                                                 Fa1/0/16, Gi1/0/2
> >> + !VLAN: 4    server                           active    Fa1/0/1, Fa1/0/2,
> >> Fa1/0/4, Fa1/0/5, Fa1/0/6, Fa1/0/7, Fa1/0/8, Fa1/0/9, Fa1/0/10, Fa1/0/11,
> >> Fa1/0/12, Fa1/0/13, Fa1/0/15, Fa1/0/16, Gi1/0/2
> >>
> >> note that when rancid stores the information id broke it up onto 3 lines
> >> and when it retrieves the config again it has it on one line.  This does not
> >> happen every time it retrieves the config.
> >>
> >> Any Ideas or suggestions welcome.
> >>
> >> Regards
> >>
> >> Shane Kavanagh
> >>
> >> _______________________________________________
> >> Rancid-discuss mailing list
> >> Rancid-discuss at shrubbery.net
> >> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> >>
> >
> >
> >
> > --
> > It has to start somewhere, it has to start sometime.  What better place
> > than here? What better time than now?
> >

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


More information about the Rancid-discuss mailing list