Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
--
"Every man should get married some time; after all, happiness is not the
only thing in life!!"

------=_Part_43135_20928095.1228712880429
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

You can try this, this might fix the issue<div><br></div><div>Edit &lt;path-to-rancid&gt;/bin/rancid</div><div><br></div><div>Give absolute path where ever you see in the script is invoking &#39;clogin&#39;</div><div><br></div> <div>For ex:</div><div>-&nbsp;open(INPUT,&quot;clogin -t $timeo -c \&quot;$cisco_cmds\&quot; $host &lt;/dev/null |&quot;) || die &quot;clogin failed for $host: $!\n&quot;;</div><div>&nbsp;+&nbsp;open(INPUT,&quot;/usr/local/rancid/bin/clogin -t $timeo -c \&quot;$cisco_cmds\&quot; $host &lt;/dev/null |&quot;) || die &quot;clogin failed for $host: $!\n&quot;;<br> <br></div><div>Thanks</div><div>Raju</div><div><br><div class="gmail_quote">On Mon, Dec 8, 2008 at 5:19 AM, Hurgh <span dir="ltr">&lt;<a href="mailto:***@hurgh.org">***@hurgh.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br><br>I am trying to login to a Cisco router that has AutoEnable setup (enter user and pass, and you are enabled).<br><br>I have the following in my .clogin file:<br><br>---------------------------------------------------------------------------------<br>

add user <a href="http://172.30.26.16" target="_blank">172.30.26.16</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myusername<br>add password <a href="http://172.30.26.16" target="_blank">172.30.26.16</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {mypassword}<br>add autoenable <a href="http://172.30.26.16" target="_blank">172.30.26.16</a>&nbsp;&nbsp;&nbsp;&nbsp; 1<br>

---------------------------------------------------------------------------------<br><br>The User and Pass have been swapped out, but I have confirmed the ones I am using are correct (can manually telnet to the device using the user and pass to login correctly).<br>

<br>I have confirmed that the router supplies the correct &quot;Username&quot; and &quot;Password&quot; prompts.<br><br>The following is the error I get when I run:<br><br>rancid <a href="http://172.30.26.16" target="_blank">172.30.26.16</a><br>

<br>--------------------------------------------------------------------------------<br>./rancid <a href="http://172.30.26.16" target="_blank">172.30.26.16</a><br>write(spawn_id=1): broken pipe<br>&nbsp;&nbsp;&nbsp; while executing<br>
&quot;send_user -- &quot;$expect_out(buffer)&quot;&quot;<br>
&nbsp;&nbsp;&nbsp; invoked from within<br>&quot;expect -nobrace -re+ { exp_continue } -re {^[^<br>&nbsp;*]*spgvsour01c([^#&gt;\r\n]+)?[#&gt;](\([^)\r\n]+\))?} { send_user -- &quot;$expect_out(buffer)&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } -re {...&quot;<br>

&nbsp;&nbsp;&nbsp; invoked from within<br>&quot;expect {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -re &quot;\b+&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { exp_continue }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -re &quot;^\[^\n\r *]*$reprompt&quot;&nbsp;&nbsp;&nbsp;&nbsp; { send_user -- &quot;$expect_out(buffer)&quot;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -re &quot;^\[^\n\r]*$reprompt.&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { send...&quot;<br>&nbsp;&nbsp;&nbsp; invoked from within<br>&quot;if [ string match &quot;*\;*&quot; &quot;$command&quot; ] {<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set commands [split $command \;]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set num_commands [llength $commands]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # the pager can not be turned off on ...&quot;<br>&nbsp;&nbsp;&nbsp; (procedure &quot;run_commands&quot; line 34)<br>&nbsp;&nbsp;&nbsp; invoked from within<br>

&quot;run_commands $prompt $command&quot;<br>&nbsp;&nbsp;&nbsp; (&quot;foreach&quot; body line 150)<br>&nbsp;&nbsp;&nbsp; invoked from within<br>&quot;foreach router [lrange $argv $i end] {<br>&nbsp;&nbsp;&nbsp; set router [string tolower $router]<br>&nbsp;&nbsp;&nbsp; # attempt at platform switching.<br>

&nbsp;&nbsp;&nbsp; set platform &quot;&quot;<br>&nbsp;&nbsp;&nbsp; send_user ...&quot;<br>&nbsp;&nbsp;&nbsp; (file &quot;/home/rancid/bin/clogin&quot; line 712)<br><a href="http://172.30.26.16" target="_blank">172.30.26.16</a>: missed cmd(s): admin show diag,dir /all slavedisk2:,dir /all sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show module,show controllers,show diagbus,dir /all slavedisk0:,show debug,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show controllers cbus,dir /all slaveslot1:,show vlan-switch,show running-config,show c7200,dir /all slot1:<br>

<a href="http://172.30.26.16" target="_blank">172.30.26.16</a>: End of run not found<br>!<br>--------------------------------------------------------------------------------<br><br>I have done some searching etc, but can not find what the problem may be.<br>

<br>

Loading...