<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px">Hi John, thanks for the reply.</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">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.</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">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?</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">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.</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">Any idea how can I gather config _without_ needing "show version" also?</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px">[1]</div><div style="font-family:Helvetica,Arial;font-size:13px"><br></div><div style="font-family:Helvetica,Arial;font-size:13px"><div style="margin:0px">[rancid@tvvsmtarist001 logs]$ cat rancidconf.20190722.143428</div><div style="margin:0px">starting: Mon Jul 22 14:34:28 UTC 2019</div><div style="margin:0px"> </div><div style="margin:0px"> </div><div style="margin:0px"> </div><div style="margin:0px">Trying to get all of the configs.</div><div style="margin:0px"><a href="http://tlcxx-mgmt-001a.mlp.com">tlcxx-mgmt-001a.mlp.com</a>: End of run not found</div><div style="margin:0px"> </div><div style="margin:0px">=====================================</div><div style="margin:0px">Getting missed routers: round 1.</div><div style="margin:0px"><a href="http://tlcxx-mgmt-001a.mlp.com">tlcxx-mgmt-001a.mlp.com</a>: End of run not found</div><div style="margin:0px"> </div><div style="margin:0px">=====================================</div><div style="margin:0px">Getting missed routers: round 2.</div><div style="margin:0px"><a href="http://tlcxx-mgmt-001a.mlp.com">tlcxx-mgmt-001a.mlp.com</a>: End of run not found</div><div style="margin:0px"> </div><div style="margin:0px">=====================================</div><div style="margin:0px">Getting missed routers: round 3.</div><div style="margin:0px"><a href="http://tlcxx-mgmt-001a.mlp.com">tlcxx-mgmt-001a.mlp.com</a>: End of run not found</div><div style="margin:0px"> </div><div style="margin:0px">=====================================</div><div style="margin:0px">Getting missed routers: round 4.</div><div style="margin:0px"><a href="http://tlcxx-mgmt-001a.mlp.com">tlcxx-mgmt-001a.mlp.com</a>: End of run not found</div><div style="margin:0px"> </div><div style="margin:0px"><br></div><div style="margin:0px">[2]</div><div style="margin:0px"> </div><div style="margin:0px">[rancid@tvvsmtarist001 logs]$ /usr/local/rancid/bin/rancid-run -V</div><div style="margin:0px">rancid 3.9</div></div> <br> <div class="gmail_signature"> <br></div> <br><p class="airmail_on">On 22 July 2019 at 19:59:07, john heasley (<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Mon, Jul 22, 2019 at 08:51:09AM -0700, Florin Vlad Olariu:
<br>> Hello,
<br>>
<br>> I have some cisco Nexus 5k and I'm having some trouble grabbing the "show
<br>> run" through rancid. In my setup I commented out most commands in the
<br>> "rancid.types.base" file except for the "show run" section. The problem is
<br>> that with the file commented, rancid can't manage to grab the output
<br>> because, according to the logs, "End of run not found". Is this message
<br>> based on finding the word "end" in the configuration? Because if that's the
<br>> requirement, then even when manually doing "show run" it's not there.
<br>
<br>please show us the error from the log file and tell us what version of
<br>rancid. also, please follow the test in the FAQ S3 Q2.
<br>
<br>Also, for some devices show version is required; as the device type can
<br>affect other parsing. I doubt that is the problem for nxos, but you
<br>also commented this:
<br>
<br>> #cisco-nx;command;rancid::RunCommand;term no monitor-force
<br>
<br>which i suspect is the problem, having now seen the errors.
<br>
<br>> The curious thing is that if I un-comment all the other show commands, then
<br>> rancid does manage to grab the router config, although of course that is
<br>> not ideal. Below [1] you can find the "rancid.types.base" config.
<br>>
<br>> cisco-nx;script;rancid -t cisco-nx
<br>
<br>please read the warning at the top of etc/rancid.types.base
<br></div></div></span></blockquote></body></html>