Discussion:
[rancid] cisco line-wrap only diff
Adam Korab
2008-04-01 13:52:12 UTC
Permalink
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.

Thanks.

--Adam
Rob Skoog
2008-04-02 13:43:39 UTC
Permalink
Post by Adam Korab
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
- !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.
Thanks.
--Adam
_______________________________________________
Rancid-discuss mailing list
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
Saku Ytti
2008-04-02 15:48:48 UTC
Permalink
Post by Rob Skoog
Post by Adam Korab
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
- !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.

[***@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
Post by Rob Skoog
Post by Adam Korab
Thanks.
--Adam
_______________________________________________
Rancid-discuss mailing list
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
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
++ytti
Eric Cables
2008-04-03 02:46:36 UTC
Permalink
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?
Post by Saku Ytti
Post by Rob Skoog
Post by Adam Korab
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
- !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.
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
Post by Rob Skoog
Post by Adam Korab
Thanks.
--Adam
_______________________________________________
Rancid-discuss mailing list
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
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
++ytti
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
Eric Cables
Loading...