Discussion:
[rancid] anyone have rancid working for a nexus 5000?
Nick Buraglio
2010-11-16 20:59:05 UTC
Permalink
I had some issues with the nexus as well and had to make some small
changes. I also cleaned out some of the stuff that was causing it to
diff every time (mostly flash related stuff). I had to do some
similar stuff to the xrrancid script for use with the CRS we had at
SuperComputing 2010. Diffs and stuff can be found at
http://buraglio.com/dev/viewvc.cgi/ if anyone wants them.

nb



On Nov 2, 2010, at 1:26 AM, Lee wrote:

I've got a work-around :)

On 11/1/10, john heasley <***@shrubbery.net> wrote:
Mon, Nov 01, 2010 at 07:40:37PM -0400, Lee:
On 11/1/10, john heasley <***@shrubbery.net> wrote:
Mon, Nov 01, 2010 at 02:34:27PM -0400, Lee:
On 10/27/10, Lee <***@gmail.com> wrote:
rancid log says

write(spawn_id=1): broken pipe
while executing
"send_user -- "$expect_out(buffer)""
invoked from within

when trying to get the config from a nexus 5000.

The problem turned out to be "show version build-info all" - ie:

nexus5000-1# show version build-info all
^
% Invalid command at '^' marker.
nexus5000-1#

plz report that to cisco. running a command that isnt supported on the
platform should not cause it to disconnect the client.

I don't think it's a cisco problem. In the above example I did a
"clogin nexus5000-1" and then typed in "show version build-info all"
at the prompt. Got the error msg & new prompt - no disconnect.

you will have to try it with all of the preceeding commands too.

did - no problems. Then I remembered that clogin adds a "term len 0"
when you give it a list of commands, so did that, repeated the
commands again & got the missing newline at the end out the 'show
version' output. But no disconnect.

... snip ...
I must be especially slow today - what am I looking for? Looking in
nexus5000-2.raw shows some extra "^M"s, but it's still the same as my
earlier example - no output:

plugin^M
Core Plugin, Ethernet Plugin^Mnexus5000-2# show license^M^M
^ where the newline?
so, show version is missing a newline at the end of it's output.

Yes & that's the problem - thanks!! Adding a "term len 60" before the
"show version" and a "term len 0" after fixes it. So my commandtable
now looks like this:
@commandtable = (
{'term no monitor-force' => 'RunCommand'},
{'term len 60' => 'RunCommand'}, # -LR-
{'show version' => 'ShowVersion'},
{'term len 0' => 'RunCommand'}, # -LR-
{'show version build-info all' => 'ShowVersionBuild'},


Thank you!
Lee

Loading...