[rancid] Re: cisco line-wrap only diff

Saku Ytti saku+rancid at ytti.fi
Wed Apr 2 15:48:48 UTC 2008


On (2008-04-02 09:43 -0400), Rob Skoog wrote:
> Adam Korab wrote:
> > Hi,
> > 
> > I'm almost certain this has been addressed before, but apparently I'm
> > not feeding htdig the proper keywords...
> > 
> > On a Cisco 3750, I periodically get diffs that only seem to be a
> > change in how the line wraps:
> > 
> > - !VLAN: 31   FCIP                             active    Gi1/0/27,
> > Gi1/0/28, Gi2/0/27
> > - !VLAN:                                                 Gi2/0/28
> > + !VLAN: 31   FCIP                             active    Gi1/0/27,
> > Gi1/0/28, Gi2/0/27, Gi2/0/28
> > 
> > 
> > What causes this, and how can it be addressed?
> > 
> > A pointer in the right direction or to a previous post would be great.

Try this.

[root at login1.fi.sn.net /opt/RCS/apps/rancid/bin]# hg diff -r 2 -r 3
diff -r 38749fc2620d -r 1639236c0ecd bin/clogin
--- a/bin/clogin        Tue Jul 10 08:50:58 2007 +0300
+++ b/bin/clogin        Tue Jul 10 08:58:00 2007 +0300
@@ -582,6 +582,8 @@ proc run_commands { prompt command } {
            set command "set logging session disable;$command"
        } else {
            send "term length 0\r"
+           expect -re $prompt  {}
+           send "term width 0\r"
        }
        # escape any parens in the prompt, such as "(enable)"
        regsub -all {[)(]} $prompt {\\&} reprompt
@@ -869,6 +871,8 @@ foreach router [lrange $argv $i end] {
            send "set logging session disable\r"
        } else {
            send "term length 0\r"
+           expect -re $prompt  {}
+           send "term width 0\r"
        }
        expect -re $prompt      {}
        source $sfile

> > 
> > Thanks.
> > 
> > --Adam
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss at shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> 
> I have notice this too with our 3750s.  It seems to be triggered every 
> time we change a config.  Generating at least one or two more emails 
> simply due to line wrapping.
> 
> Rob
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

-- 
  ++ytti


More information about the Rancid-discuss mailing list