[rancid] Issue with Brocade FC capture and line length

Erik Soosalu esoo at caasco.ca
Thu Feb 2 21:35:32 UTC 2017


Yeah, I agree that 11K is ridiculous for a single line.

brocadelogin -c "configshow -all" <host> did not work.  The line is altered only showing the last part of the line.

However, that info gave me enough to go on.  brocadelogin is an expect script, and expect does have a default bufferlength and it is a rolling buffer (from what google told me).  I added in max_match 60000 in the run_commands section and now I get the full line.

Thanks for the help.
Erik
-----Original Message-----
From: heasley [mailto:heas at shrubbery.net]
Sent: Thursday, February 2, 2017 3:09 PM
To: Erik Soosalu <esoo at caasco.ca>
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Issue with Brocade FC capture and line length

Wed, Feb 01, 2017 at 02:47:46PM +0000, Erik Soosalu:
> Hi there,
>
> I've been fighting against this for a couple of days and my scripting isn't strong enough to figure out where this is going wrong.
>
> I've setup RANCID and I've got it working successfully pulling my configs from my Brocade Fiber Channel switches.  I've used brocadelogin/brocaderancid from here: https://lists.gt.net/rancid/users/5454
>
> Where I'm having issues is in my primary site where the active zone config is very large.  The configuration definition line consists of a tag followed by all the zones separated by semi-colons.  When I look at a normal configuration upload, this line is 11,000 characters long.  If I ssh into the switch and show the config, I see 11,000 characters.  However, when I look at what is captured by RANCID, I only get a line that is ~4200 characters long, and it appears to be the last 4200 characters of the line (like data is rolling through a buffer).  I can't seem to find anywhere that is setting this length.
>
> Any suggestions where I could look to resolve this?

11k is ridiculous.  did they hire folks from Foundry.

is it really whatever you are using to view the file?

does brocadelogin -c 'whateverthecommandsistodisplaytheconfig' hostname
work?  else it might be perl, though a search suggests not; brocaderancid
hostname and look for the truncation.  is it the SCM you're using?
Please consider the environment before printing this e-mail. WARNING - CONFIDENTIALITY NOTICE This e-mail and any attachments may contain confidential and privileged information. Any use, disclosure, copying or dissemination of this information by a person other than an intended recipient is not authorized and may be illegal. If you are not an intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies.



More information about the Rancid-discuss mailing list