Discussion:
[rancid] VLAN portion of rancid-run
z***@iol.pt
2008-05-26 13:10:32 UTC
Permalink
Good afternoon

I need your help

For some reason everytime my rancid runs I get new revisions in my
Cisco equipments (even if thereÂŽs no changes in their configurations),
due to the Vlan proportion of the config (the printscreen is anexed to
this mail).

I donÂŽt know why this happens...is this some kind of bug in rancid?

Does anybody know a fix for this?

If not, how do I remove the show vlan portion in Rancid? Is there a
file in the Rancid Folder that contains the vlan configuration
lines?Which lines should I remove so that Rancid does not retrieve the
Vlan config from the equipments?

I apreciate any help

Thkx

________________________________________________________________________________
Adira à Sempre Seguros e POUPE no seu seguro automóvel!
PROMOÇÃO: oferta vale combustível com o seu novo seguro. Ligue 808 200 600.
http://www.iol.pt/correio/rodape.php?dst=0804301
z***@iol.pt
2008-05-27 17:06:33 UTC
Permalink
Good afterrnon

Which file contains the show vlan command? Do you know whatÂŽs the file name that runs the script?

Thkx for your reply

----- Mensagem de ***@shrubbery.net ---------
Data: Tue, 27 May 2008 09:16:51 -0700
De: john heasley <***@shrubbery.net>
Assunto: Re: [rancid] VLAN portion of rancid-run
Post by z***@iol.pt
Good afternoon
I need your help
For some reason everytime my rancid runs I get new revisions in my
Cisco equipments (even if there?s no changes in their configurations),
due to the Vlan proportion of the config (the printscreen is anexed to
this mail).
I don?t know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
turn off the auto vlan configuration thing. forget what its called off
the top.
Post by z***@iol.pt
If not, how do I remove the show vlan portion in Rancid? Is there a
file in the Rancid Folder that contains the vlan configuration
lines?Which lines should I remove so that Rancid does not retrieve the
Vlan config from the equipments?
ATM, look for show vlan command in the script, comment-out the line.
________________________________________________________________________________
Adira à Sempre Seguros e POUPE no seu seguro automóvel!
PROMOÇÃO: oferta vale combustível com o seu novo seguro. Ligue 808 200 600.
http://www.iol.pt/correio/rodape.php?dst=0804301
Saku Ytti
2008-05-28 09:06:43 UTC
Permalink
equipments (even if there´s no changes in their configurations), due to
the Vlan proportion of the config (the printscreen is anexed to this
mail).
I don´t know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
This seems to be FAQ, quick fix is to do add 'terminal width 0' where
'terminal length 0' is. Since the config change is caused by line-wrapping
when some VLAN gets more/less ports.

Thanks,
--
++ytti
john heasley
2008-05-28 21:40:56 UTC
Permalink
Post by Saku Ytti
equipments (even if there?s no changes in their configurations), due to
the Vlan proportion of the config (the printscreen is anexed to this
mail).
I don?t know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
This seems to be FAQ, quick fix is to do add 'terminal width 0' where
'terminal length 0' is. Since the config change is caused by line-wrapping
when some VLAN gets more/less ports.
Adding 'terminal width' has concerned me; that it would reveal cisco/other
platform bugs. The number of platforms that I have is limited. Who is
using this change and with what platforms?
Saku Ytti
2008-05-29 18:03:21 UTC
Permalink
Post by john heasley
Adding 'terminal width' has concerned me; that it would reveal cisco/other
platform bugs. The number of platforms that I have is limited. Who is
using this change and with what platforms?
I'm using it on thousands of boxes (>5k or so), covering virtually
all devices running IOS and some running something similar enough
to support terminal width.
While of course I'd only need it on switching capable platforms,
but didn't bother making the distinction.

Quick search on (old) bugtool for 'terminal width':
CSCdu07646 Fail to load acls via telnet-relay by endless zero-window acks
CSCdm54100 Autoselect functions need to be allowed under line vty configuration
CSCdi44586 tn3270 crash when using wide terminals
CSCea17293 Extra line when using ? and output > term width because CSCdx17425
CSCea21120 SSH server incorrectly processes column size on pty request
CSCdj90725 terminal width 0 has no effect.
CSCec59007 Missing DRR info in the output of show cos if terminal width is 0
CSCdj43008 lines longer than terminal width break automore
CSCei67424 Last 4 bytes of key displayed as dangling text in show crypto key
CSCdw52822 ENH: Need long version of show mls ip command in Native

Cherry picking the crash one:
CSCdi44586
tn3270 crash when using wide terminals
Found In: 11.0, Affected Versions:
Fixed in: 11.0(4.4) 11.1(0.18)M 10.3(8.5) 10.3(9.1)
The tn3270 feature may crash if a terminal width greater than 100characters is configured before connecting to a host application.

So of course it does add risk, like every other command, but comparing it to amount of
crashes caused by 'show run', it's quite safe.
--
++ytti
john heasley
2008-05-29 21:52:06 UTC
Permalink
Post by Saku Ytti
Post by john heasley
Adding 'terminal width' has concerned me; that it would reveal cisco/other
platform bugs. The number of platforms that I have is limited. Who is
using this change and with what platforms?
I'm using it on thousands of boxes (>5k or so), covering virtually
all devices running IOS and some running something similar enough
to support terminal width.
While of course I'd only need it on switching capable platforms,
but didn't bother making the distinction.
would setting it to something non-zero be a better choice? 128 for example.
Post by Saku Ytti
CSCdu07646 Fail to load acls via telnet-relay by endless zero-window acks
CSCdm54100 Autoselect functions need to be allowed under line vty configuration
CSCdi44586 tn3270 crash when using wide terminals
CSCea17293 Extra line when using ? and output > term width because CSCdx17425
CSCea21120 SSH server incorrectly processes column size on pty request
CSCdj90725 terminal width 0 has no effect.
CSCec59007 Missing DRR info in the output of show cos if terminal width is 0
CSCdj43008 lines longer than terminal width break automore
CSCei67424 Last 4 bytes of key displayed as dangling text in show crypto key
CSCdw52822 ENH: Need long version of show mls ip command in Native
CSCdi44586
tn3270 crash when using wide terminals
Fixed in: 11.0(4.4) 11.1(0.18)M 10.3(8.5) 10.3(9.1)
The tn3270 feature may crash if a terminal width greater than 100characters is configured before connecting to a host application.
So of course it does add risk, like every other command, but comparing it to amount of
crashes caused by 'show run', it's quite safe.
--
++ytti
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Saku Ytti
2008-05-30 06:32:20 UTC
Permalink
Post by john heasley
Post by Saku Ytti
Post by john heasley
Adding 'terminal width' has concerned me; that it would reveal cisco/other
platform bugs. The number of platforms that I have is limited. Who is
using this change and with what platforms?
I'm using it on thousands of boxes (>5k or so), covering virtually
all devices running IOS and some running something similar enough
to support terminal width.
While of course I'd only need it on switching capable platforms,
but didn't bother making the distinction.
would setting it to something non-zero be a better choice? 128 for example.
I guess to answer this question, we'd need to take a peek at IOS source,
to see how wrapping is done, and would non-wrapping of infinitely large
string force infinitely large buffer. I'd like to think that it's designer
lot better than that.
What I do foresee with say 128 term len, is corner cases of people mailing
rancid-ml about why on some of their boxes they get weird diffs, making
it bit much harder to trace what's going on.

Anyhow the concern is valid, and as rancid is hugely popular and
typically upgraded without further testing internally, there is some pressure
to release software that does not crash all of your network at once.
I'm not sure what is best way to address this, one way is to stagnate the
development 'we have what we need, and it works', one way is to just accept the
risk in new versions and try to warn users about it and yet another would be to
call for volunteers testing the changes in as heterogeneous networks as
possible, to give some level of trust on the change before introduced to
the wild.
--
++ytti
Ed Ravin
2008-05-30 13:32:27 UTC
Permalink
Post by Saku Ytti
Post by john heasley
Adding 'terminal width' has concerned me; that it would reveal cisco/other
platform bugs. The number of platforms that I have is limited. Who is
using this change and with what platforms?
[...]
Post by Saku Ytti
Anyhow the concern is valid, and as rancid is hugely popular and
typically upgraded without further testing internally, there is some pressure
to release software that does not crash all of your network at once.
I'm not sure what is best way to address this, one way is to stagnate the
development 'we have what we need, and it works', one way is to just accept the
risk in new versions and try to warn users about it and yet another would be to
call for volunteers testing the changes
But the best way would be to give RANCID a way to let the user easily
change the commands sent to the device, so they could put in
"terminal width <whatever>" if it worked for them. The inability
to customize RANCID to a site without hand-patching is RANCID's
Achilles heel.
Simon Leinen
2008-06-01 17:11:54 UTC
Permalink
Post by john heasley
would setting it to something non-zero be a better choice? 128 for example.
We have been using "terminal width 80" with RANCID for years. Works
fine, but then we only have Cisco boxes.

Personally I think either 0 or something in the range 72-80 would be
best, generating either short and machine-readable or human-readable
diffs.

And yes, it would be great if this could be parametrized somewhere,
possibly within some hook for specifying device-specific commands,
along the lines of Ed Ravin's suggestion in message
<***@panix.com>.
--
Simon.
Zarahel
2008-05-28 22:51:36 UTC
Permalink
I´ve tried to add the 'terminal width 0' in the routers but everytime I log
out from the router and login again the terminal width value changes.
Anybody knows why?

-----Mensagem original-----
De: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] Em nome de john heasley
Enviada: quarta-feira, 28 de Maio de 2008 22:41
Para: Saku Ytti
Cc: rancid-***@shrubbery.net
Assunto: [rancid] Re: VLAN portion of rancid-run
Post by Saku Ytti
equipments (even if there?s no changes in their configurations), due to
the Vlan proportion of the config (the printscreen is anexed to this
mail).
I don?t know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
This seems to be FAQ, quick fix is to do add 'terminal width 0' where
'terminal length 0' is. Since the config change is caused by line-wrapping
when some VLAN gets more/less ports.
Adding 'terminal width' has concerned me; that it would reveal cisco/other
platform bugs. The number of platforms that I have is limited. Who is
using this change and with what platforms?
Lance Vermilion
2008-05-28 23:04:35 UTC
Permalink
This change in the past has fixed some IOS stuff has similar command for
CatOS results in no fix. The bottom line is the rancid script runs from cron
thus it always uses the same terminal and the output generated from a show
run/etc should not differ on screen output. I can login 10 or more times
using the same clogin script with from my screen and I don't see a single
difference between the output..even if ran through diff. I would think the
problem lies elsewhere.

-Lance
IŽve tried to add the 'terminal width 0' in the routers but everytime I log
out from the router and login again the terminal width value changes.
Anybody knows why?
-----Mensagem original-----
Enviada: quarta-feira, 28 de Maio de 2008 22:41
Para: Saku Ytti
Assunto: [rancid] Re: VLAN portion of rancid-run
Post by Saku Ytti
equipments (even if there?s no changes in their configurations), due to
the Vlan proportion of the config (the printscreen is anexed to this
mail).
I don?t know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
This seems to be FAQ, quick fix is to do add 'terminal width 0' where
'terminal length 0' is. Since the config change is caused by
line-wrapping
Post by Saku Ytti
when some VLAN gets more/less ports.
Adding 'terminal width' has concerned me; that it would reveal cisco/other
platform bugs. The number of platforms that I have is limited. Who is
using this change and with what platforms?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Austin Schutz
2008-05-29 04:53:28 UTC
Permalink
Post by Lance Vermilion
This change in the past has fixed some IOS stuff has similar command for
CatOS results in no fix. The bottom line is the rancid script runs from cron
thus it always uses the same terminal and the output generated from a show
run/etc should not differ on screen output. I can login 10 or more times
using the same clogin script with from my screen and I don't see a single
difference between the output..even if ran through diff. I would think the
problem lies elsewhere.
Could it be some router config setting on a particular vty? Typically
all vtys have identical setting, but if it _were_ different, one could imagine
this sort of error.

Austin
Higham, Josh
2008-05-29 14:40:58 UTC
Permalink
Post by Lance Vermilion
This change in the past has fixed some IOS stuff has similar
command for CatOS results in no fix. The bottom line is the rancid
script runs from cron thus it always uses the same terminal and the
output generated from a show run/etc should not differ on screen output.
I can login 10 or more times using the same clogin script with from my
screen and I don't see a single difference between the output..even if
ran through diff. I would think the problem lies elsewhere.
-Lance
On a similar note, any time we make a change to our Cisco ASA, a lot of lines show up with a different indentation:

@@ -910,13 +914,13 @@
group-object Service1
group-object Service2
group-object Service3
object-group service DM_INLINE_TCP_4 tcp
- group-object Service4
+ group-object Service4
group-object Service5
group-object Service6
object-group network DM_INLINE_NETWORK_9
- network-object host Host1
+ network-object host Host1
network-object host Host2
network-object host Host3
object-group service DM_INLINE_SERVICE_1
group-object Service9

Is there a newline being lost somewhere that is causing this behaviour, and possibly a similar thing with the vlans?

I haven't had time to look at this in depth yet.

Thanks,
Josh

On Wed, May 28, 2008 at 3:51 PM, Zarahel <***@iol.pt> wrote:


I´ve tried to add the 'terminal width 0' in the routers but everytime I log
out from the router and login again the terminal width value changes.
Anybody knows why?

-----Mensagem original-----
De: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] Em nome de john heasley
Enviada: quarta-feira, 28 de Maio de 2008 22:41
Para: Saku Ytti
Cc: rancid-***@shrubbery.net
Assunto: [rancid] Re: VLAN portion of rancid-run
Post by Lance Vermilion
equipments (even if there?s no changes in their configurations), due to
the Vlan proportion of the config (the printscreen is anexed to this
mail).
I don?t know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
This seems to be FAQ, quick fix is to do add 'terminal width 0' where
'terminal length 0' is. Since the config change is caused by line-wrapping
when some VLAN gets more/less ports.
Adding 'terminal width' has concerned me; that it would reveal cisco/other
platform bugs. The number of platforms that I have is limited. Who is
using this change and with what platforms?

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

_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
z***@iol.pt
2008-05-29 14:48:34 UTC
Permalink
It happens randomly (of course not so random...thereÂŽs gotta be a reason), either when Rancid is runned manually or by cronjob. Any other suggestions?

Thkx

----- Mensagem de ***@gmail.com ---------
Data: Thu, 29 May 2008 10:26:19 -0400
De: Chris Stave <***@gmail.com>
Assunto: Re: [rancid] VLAN portion of rancid-run
Does it do this when rancid just runs on its own via a cron job, or only when rancid is manually run and when it goes back to running on its own? I've had it do similar things if I'm running it manually, but not just on its own.
Chris
Good afternoon
I need your help
For some reason everytime my rancid runs I get new revisions in my Cisco equipments (even if thereÂŽs no changes in their configurations), due to the Vlan proportion of the config (the printscreen is anexed to this mail).
I donÂŽt know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
If not, how do I remove the show vlan portion in Rancid? Is there a file in the Rancid Folder that contains the vlan configuration lines?Which lines should I remove so that Rancid does not retrieve the Vlan config from the equipments?
I apreciate any help
Thkx
________________________________________________________________________________
Adira à Sempre Seguros e POUPE no seu seguro automóvel!
PROMOÇÃO: oferta vale combustível com o seu novo seguro. Ligue 808 200 600.
http://www.iol.pt/correio/rodape.php?dst=0804301[2]
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss[4]
----- Fim da mensagem de ***@gmail.com -----


Ligações:
---------
[1] mailto:***@iol.pt
[2] http://www.iol.pt/correio/rodape.php?dst=0804301
[3] mailto:Rancid-***@shrubbery.net
[4] http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


________________________________________________________________________________
COFIDIS Maxicredito. Ate' €10.000 sem burocracias. Resposta on-line!
Clique aqui para saber mais http://www.iol.pt/correio/rodape.php?dst=0802273
Chris Stave
2008-05-29 14:26:19 UTC
Permalink
Does it do this when rancid just runs on its own via a cron job, or only
when rancid is manually run and when it goes back to running on its own?
I've had it do similar things if I'm running it manually, but not just on
its own.

Chris
Post by z***@iol.pt
Good afternoon
I need your help
For some reason everytime my rancid runs I get new revisions in my Cisco
equipments (even if thereŽs no changes in their configurations), due to the
Vlan proportion of the config (the printscreen is anexed to this mail).
I donŽt know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
If not, how do I remove the show vlan portion in Rancid? Is there a file in
the Rancid Folder that contains the vlan configuration lines?Which lines
should I remove so that Rancid does not retrieve the Vlan config from the
equipments?
I apreciate any help
Thkx
________________________________________________________________________________
Adira à Sempre Seguros e POUPE no seu seguro automóvel!
PROMOÇÃO: oferta vale combustível com o seu novo seguro. Ligue 808 200 600.
http://www.iol.pt/correio/rodape.php?dst=0804301
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2008-05-29 16:28:42 UTC
Permalink
this would be caused by your terminal type (TERM).
Does it do this when rancid just runs on its own via a cron job, or only
when rancid is manually run and when it goes back to running on its own?
I've had it do similar things if I'm running it manually, but not just on
its own.
Chris
Post by z***@iol.pt
Good afternoon
I need your help
For some reason everytime my rancid runs I get new revisions in my Cisco
equipments (even if there?s no changes in their configurations), due to the
Vlan proportion of the config (the printscreen is anexed to this mail).
I don?t know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
If not, how do I remove the show vlan portion in Rancid? Is there a file in
the Rancid Folder that contains the vlan configuration lines?Which lines
should I remove so that Rancid does not retrieve the Vlan config from the
equipments?
I apreciate any help
Thkx
________________________________________________________________________________
Adira ? Sempre Seguros e POUPE no seu seguro autom?vel!
PROMO??O: oferta vale combust?vel com o seu novo seguro. Ligue 808 200 600.
http://www.iol.pt/correio/rodape.php?dst=0804301
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lance Vermilion
2008-05-29 16:49:26 UTC
Permalink
John,

Correct me if I am wrong but when rancid runs by cron it sets the TERM. I
don't recall but does it set it to network?
Post by john heasley
this would be caused by your terminal type (TERM).
Does it do this when rancid just runs on its own via a cron job, or only
when rancid is manually run and when it goes back to running on its own?
I've had it do similar things if I'm running it manually, but not just on
its own.
Chris
Post by z***@iol.pt
Good afternoon
I need your help
For some reason everytime my rancid runs I get new revisions in my
Cisco
Post by z***@iol.pt
equipments (even if there?s no changes in their configurations), due to
the
Post by z***@iol.pt
Vlan proportion of the config (the printscreen is anexed to this mail).
I don?t know why this happens...is this some kind of bug in rancid?
Does anybody know a fix for this?
If not, how do I remove the show vlan portion in Rancid? Is there a
file in
Post by z***@iol.pt
the Rancid Folder that contains the vlan configuration lines?Which
lines
Post by z***@iol.pt
should I remove so that Rancid does not retrieve the Vlan config from
the
Post by z***@iol.pt
equipments?
I apreciate any help
Thkx
________________________________________________________________________________
Post by z***@iol.pt
Adira ? Sempre Seguros e POUPE no seu seguro autom?vel!
PROMO??O: oferta vale combust?vel com o seu novo seguro. Ligue 808 200
600.
Post by z***@iol.pt
http://www.iol.pt/correio/rodape.php?dst=0804301
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Zarahel
2008-05-31 13:44:05 UTC
Permalink
Okay

I´ve seen alot of inputs, but the problem remains. The Revisions continue to
increase randomly because of Vlan terminal Output. I don´t know how to solve
this..

I´ve tried to edit some rancid files and comment the show vlan portion of
the script, but there´s 2 or 3 files with vlan settings, and I´m afraid of
screw up Rancid afterwords...

Does anybody know of any other solution for terminal width in cisco routers?
Any more suggestions?

Thkx


-----Mensagem original-----
De: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] Em nome de Ed Ravin
Enviada: sexta-feira, 30 de Maio de 2008 14:32
Para: Saku Ytti
Cc: rancid-***@shrubbery.net
Assunto: [rancid] Re: VLAN portion of rancid-run
Post by Saku Ytti
Post by john heasley
Adding 'terminal width' has concerned me; that it would reveal
cisco/other
Post by Saku Ytti
Post by john heasley
platform bugs. The number of platforms that I have is limited. Who
is
Post by Saku Ytti
Post by john heasley
using this change and with what platforms?
[...]
Post by Saku Ytti
Anyhow the concern is valid, and as rancid is hugely popular and
typically upgraded without further testing internally, there is some
pressure
Post by Saku Ytti
to release software that does not crash all of your network at once.
I'm not sure what is best way to address this, one way is to stagnate the
development 'we have what we need, and it works', one way is to just
accept the
Post by Saku Ytti
risk in new versions and try to warn users about it and yet another would
be to
Post by Saku Ytti
call for volunteers testing the changes
But the best way would be to give RANCID a way to let the user easily
change the commands sent to the device, so they could put in
"terminal width <whatever>" if it worked for them. The inability
to customize RANCID to a site without hand-patching is RANCID's
Achilles heel.
Alexander Bochmann
2008-06-30 16:27:15 UTC
Permalink
I?ve seen alot of inputs, but the problem remains. The Revisions continue to
increase randomly because of Vlan terminal Output. I don?t know how to solve
this..
Just writing (a month late) to note that terminal width
is not the only reason for this problem to occur:

show vlan output also changes when a switchport changes it's
state (a device attached to a switchport is (dis)connected
between rancid runs).

This can make using rancid to collect data from access
switches quite a nuisance.

Alex.

Loading...