[rancid] Fwd: clogin configuration mode question/prompt missing

Ramon ramonbatwork at gmail.com
Tue Oct 29 18:13:29 UTC 2013


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:

http://www.gossamer-threads.com/lists/rancid/users/345

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?

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)# "

Thanks in advance!

---------- Forwarded message ----------
From: Ramon <ramonbatwork at gmail.com>
Date: Tue, Oct 29, 2013 at 10:16 AM
Subject: clogin configuration mode question/prompt missing
To: rancid-discuss at shrubbery.net


Hello all,

When removing a nat overload command on a cisco router *manually* I get:

router(config)#no ip nat in source list 122 int g0/1 over

Dynamic mapping in use, do you want to delete all entries? [no]: no
%Error: Dynamic mapping in use, cannot remove

When removing with a script using clogin from rancid suite I don't ever see
the question:

router(config)#no ip nat in source list 122 int g0/1 over


Error: TIMEOUT reached


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.

What could I be missing, afaik clogin uses the same ssh executable I am
using on the system when doing the manual push.

Thanks for any suggestions!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20131029/7e7d30de/attachment.html>


More information about the Rancid-discuss mailing list