Discussion:
[rancid] Fwd: clogin configuration mode question/prompt missing
Ramon
2013-10-29 18:13:29 UTC
Permalink
Ramon
1970-01-01 00:00:00 UTC
Permalink
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 <***@gmail.com>
Date: Tue, Oct 29, 2013 at 10:16 AM
Subject: clogin configuration mode question/prompt missing
To: rancid-***@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!

--001a11c2e96478de0904e9e52c90
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir="ltr"><div><div>I think I might be on the way to resolve this issue.
heasley
2013-10-29 22:27:35 UTC
Permalink
Post by Ramon
I think I might be on the way to resolve this issue.
Ramon
2013-10-29 14:16:15 UTC
Permalink
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:

st2675(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!

Loading...