[rancid] Re: cisco line-wrap only diff
Eric Cables
ecables at gmail.com
Thu Apr 3 02:46:36 UTC 2008
If this is the official "fix", why isn't it implemented into the next
release? It seems to be a trend to just patch things up locally, instead of
getting them added into the official release... is there a reason for this?
On Wed, Apr 2, 2008 at 8:48 AM, Saku Ytti <saku+rancid at ytti.fi> wrote:
> 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
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
--
Eric Cables
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20080402/1df8ddee/attachment.html
More information about the Rancid-discuss
mailing list