<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:'Times New Roman', Times, serif;">
<p>> What could be the problem here? </p>
<p><br>
</p>
<p>RANCID looks for the prompt. If it doesn't see it you get a timeout</p>
<p><br>
</p>
<p>I'm going to guess the problem is the prompt is different in the system context. I just tried it & got:</p>
<p><br>
</p>
asaname/admin> ena<br>
Password: ****************<br>
asaname/admin# changeto context system<br>
asaname#<br>
<br>
<br>
<p>& no, sorry, I don't know how to deal with the prompt changing on you like that.</p>
<p><br>
</p>
<p>Regards,</p>
<p>Lee</p>
<p><br>
</p>
<p><br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of christian.filips@tu-dortmund.de <christian.filips@tu-dortmund.de><br>
<b>Sent:</b> Tuesday, November 17, 2015 4:26 AM<br>
<b>To:</b> rancid-discuss@shrubbery.net<br>
<b>Subject:</b> [rancid] RANCID/clogin context-change FWSM/ASA</font>
<div> </div>
</div>
<div>
<div style="">
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Hello all!</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
I have the problem to change the context after login into a Cisco FWSM.</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
This is my clogin-command:</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
=============</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
rancid@host:$ /usr/lib/rancid/bin/clogin -c 'terminal pager 0; changeto context system;sh running-config;exit' asa-address</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
asa-address</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
spawn ssh -c 3des -x -l cisco_login asa-address</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
login@asa-address's password:</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Type help or '?' for a list of available commands.</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
asa-address/admin> enable</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Password:</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
asa-address/admin#</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
asa-address/admin# terminal length 0</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
^</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
ERROR: % Invalid input detected at '^' marker.</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
asa-address/admin# terminal width 132</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
^</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
ERROR: % Invalid input detected at '^' marker.</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
asa-address/admin# terminal pager 0</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
asa-address/admin# changeto context system</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Error: TIMEOUT reached</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
rancid@host:$</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
=============</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
The timeout appears at nearly 45 seconds.</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
-</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
I tried to find out something with the -d option, but it looks ok.</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
I could mail, if useful, the output also.</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
-</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
I ran this on a ASA 5585, and it works fine there! </p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Also for our Switches (without context-change ;-)).</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
What could be the problem here? </p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Thanks for help or new ideas!</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
BR</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif;">
Christian</p>
</div>
<font face="Arial"><font size="2"><em>Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender
und vernichten Sie diese Mail. Vielen Dank. <br>
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen.
<br>
<br>
Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail
correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax.
</em></font></font></div>
</div>
</div>
</body>
</html>