[rancid] Rancid and the Cisco 5000 Nexus Platform
Florin Vlad Olariu
vv.corto at gmail.com
Tue Jul 23 08:29:01 UTC 2019
Hi John, thanks for the reply.
I am running version 3.9 [2] and the logs looks like in [1]. I tried
un-commenting the line that states
"#cisco-nx;command;rancid::RunCommand;term no monitor-force" but it doesn't
work anyway.
Reading about your comment on "show version" made me try and un-comment
that line... (and only that line) and after that it worked!. But why do I
need to have show version in there at all for this to properly work?
An alternative solution I had was to put variables "$clean_run" and
"$found_end" to 1 in the /usr/local/rancid/bin/rancid file, but of course
this is not ideal as it applies to all types of routers.
Any idea how can I gather config _without_ needing "show version" also?
[1]
[rancid at tvvsmtarist001 logs]$ cat rancidconf.20190722.143428
starting: Mon Jul 22 14:34:28 UTC 2019
Trying to get all of the configs.
tlcxx-mgmt-001a.mlp.com: End of run not found
=====================================
Getting missed routers: round 1.
tlcxx-mgmt-001a.mlp.com: End of run not found
=====================================
Getting missed routers: round 2.
tlcxx-mgmt-001a.mlp.com: End of run not found
=====================================
Getting missed routers: round 3.
tlcxx-mgmt-001a.mlp.com: End of run not found
=====================================
Getting missed routers: round 4.
tlcxx-mgmt-001a.mlp.com: End of run not found
[2]
[rancid at tvvsmtarist001 logs]$ /usr/local/rancid/bin/rancid-run -V
rancid 3.9
On 22 July 2019 at 19:59:07, john heasley (heas at shrubbery.net) wrote:
Mon, Jul 22, 2019 at 08:51:09AM -0700, Florin Vlad Olariu:
> Hello,
>
> I have some cisco Nexus 5k and I'm having some trouble grabbing the "show
> run" through rancid. In my setup I commented out most commands in the
> "rancid.types.base" file except for the "show run" section. The problem
is
> that with the file commented, rancid can't manage to grab the output
> because, according to the logs, "End of run not found". Is this message
> based on finding the word "end" in the configuration? Because if that's
the
> requirement, then even when manually doing "show run" it's not there.
please show us the error from the log file and tell us what version of
rancid. also, please follow the test in the FAQ S3 Q2.
Also, for some devices show version is required; as the device type can
affect other parsing. I doubt that is the problem for nxos, but you
also commented this:
> #cisco-nx;command;rancid::RunCommand;term no monitor-force
which i suspect is the problem, having now seen the errors.
> The curious thing is that if I un-comment all the other show commands,
then
> rancid does manage to grab the router config, although of course that is
> not ideal. Below [1] you can find the "rancid.types.base" config.
>
> cisco-nx;script;rancid -t cisco-nx
please read the warning at the top of etc/rancid.types.base
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20190723/f7097b47/attachment.html>
More information about the Rancid-discuss
mailing list