<div dir="ltr"><div><div>I think I might be on the way to resolve this issue. From what I understood this problem could be due to the way clogin reacts to a change in the $prompt from what it normally expects:<br><br><a href="http://www.gossamer-threads.com/lists/rancid/users/345">http://www.gossamer-threads.com/lists/rancid/users/345</a><br>
<br></div>Is there a quick way to modify clogin so it accepts these uncommon questions as valid prompts, displaying them and continuing interaction instead of timing-out?<br><br></div>To rephrase it, could I add the string "Dynamic mapping in use, do you want to delete all entries? [no]:" as a possible prompt beyond just "router# " and "router(config)# "<br>
<div><div><br></div><div>Thanks in advance!<br></div><div><div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Ramon</b> <span dir="ltr"><<a href="mailto:ramonbatwork@gmail.com">ramonbatwork@gmail.com</a>></span><br>
Date: Tue, Oct 29, 2013 at 10:16 AM<br>Subject: clogin configuration mode question/prompt missing<br>To: <a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a><br><br><br><div dir="ltr"><div><div><div>
<div><div><div>Hello all,<br><br></div>When removing a nat overload command on a cisco router *manually* I get:<br><br>router(config)#no ip nat in source list 122 int g0/1 over<br><br>Dynamic mapping in use, do you want to delete all entries? [no]: no<br>
%Error: Dynamic mapping in use, cannot remove<br><br></div>When removing with a script using clogin from rancid suite I don't ever see the question:<br><br>router(config)#no ip nat in source list 122 int g0/1 over<br>
<br><br>Error: TIMEOUT reached<br><br><br></div>Without the prompt, I cannot include a "yes" line on the configuration script and automate the process. For some reason unknown when clogin pushes the statement it does not receive or displays the question and eventually times out.<br>
<br></div>What could I be missing, afaik clogin uses the same ssh executable I am using on the system when doing the manual push.<br><br></div>Thanks for any suggestions!<br></div></div>
</div><br></div></div></div></div></div>