Hi All,<br><br>With a little bit of reading and some rancid -d action, I have discovered the problem.<br><br>-- snip --<br>HIT COMMAND:spgvsour01c28#show variables boot<br> In ShowBoot: spgvsour01c28#show variables boot<br>
HIT COMMAND:spgvsour01c28#show flash<br> In ShowFlash: spgvsour01c28#show flash<br>HIT COMMAND:spgvsour01c28#dir /all nvram:<br> In DirSlotN: spgvsour01c28#dir /all nvram:<br>write(spawn_id=1): broken pipe<br> while executing<br>
"send_user -- "$expect_out(buffer)""<br> invoked from within<br>"expect -nobrace -re+ { exp_continue } -re {^[^<br> *]*spgvsour01c([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user -- "$expect_out(buffer)"<br>
} -re {..."<br> invoked from within<br>"expect {<br>-- snip --<br><br>It seems that the username I am using to login to the router does not have access to run some of the required commands.<br>
<br>Dose anyone know how to stop Rancid running specific commands for specific hosts? or is it a manual hack job to fix it?<br><br>Thanks<br><br><br><br><div class="gmail_quote">On Tue, Dec 9, 2008 at 6:41 AM, john heasley <span dir="ltr"><<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mon, Dec 08, 2008 at 10:49:06AM +1100, Hurgh:<br>
<div class="Ih2E3d">> Hi all,<br>
><br>
> I am trying to login to a Cisco router that has AutoEnable setup (enter user<br>
> 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> myusername<br>
> add password <a href="http://172.30.26.16" target="_blank">172.30.26.16</a> {mypassword}<br>
> add autoenable <a href="http://172.30.26.16" target="_blank">172.30.26.16</a> 1<br>
> ---------------------------------------------------------------------------------<br>
><br>
> The User and Pass have been swapped out, but I have confirmed the ones I am<br>
> using are correct (can manually telnet to the device using the user and pass<br>
> to login correctly).<br>
><br>
> I have confirmed that the router supplies the correct "Username" and<br>
> "Password" 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>
> while executing<br>
> "send_user -- "$expect_out(buffer)""<br>
> invoked from within<br>
> "expect -nobrace -re+ { exp_continue } -re {^[^<br>
> *]*spgvsour01c([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --<br>
</div> ^^^^^^^^^^^<br>
it looks like its already logged in and seen the prompt and has begun<br>
to run commands. its more likely that the device disconnected prematurely,<br>
but why I do not know. Follow the cloginrc/clogin testing in the FAQ.<br>
<div><div></div><div class="Wj3C7c"><br>
> "$expect_out(buffer)"<br>
> } -re {..."<br>
> invoked from within<br>
> "expect {<br>
> -re "\b+" { exp_continue }<br>
> -re "^\[^\n\r *]*$reprompt" { send_user --<br>
> "$expect_out(buffer)"<br>
> }<br>
> -re "^\[^\n\r]*$reprompt." { send..."<br>
> invoked from within<br>
> "if [ string match "*\;*" "$command" ] {<br>
> set commands [split $command \;]<br>
> set num_commands [llength $commands]<br>
> # the pager can not be turned off on ..."<br>
> (procedure "run_commands" line 34)<br>
> invoked from within<br>
> "run_commands $prompt $command"<br>
> ("foreach" body line 150)<br>
> invoked from within<br>
> "foreach router [lrange $argv $i end] {<br>
> set router [string tolower $router]<br>
> # attempt at platform switching.<br>
> set platform ""<br>
> send_user ..."<br>
> (file "/home/rancid/bin/clogin" 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<br>
> sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all disk2:,dir<br>
> /all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all<br>
> disk0:,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all<br>
> slavenvram:,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all<br>
> sec-disk0:,dir /all harddiskb:,show inventory raw,dir /all slavedisk1:,show<br>
> module,show controllers,show diagbus,dir /all slavedisk0:,show debug,dir<br>
> /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp<br>
> status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all<br>
> slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show<br>
> controllers cbus,dir /all slaveslot1:,show vlan-switch,show<br>
> 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>
> >From reading through the errors, it seems that it is not able to enter the<br>
> user or password, but I dont know why.<br>
><br>
> Here is the output from a manual telnet to the device:<br>
><br>
> --------------------------------------------------------------------------------<br>
> telnet <a href="http://172.30.26.16" target="_blank">172.30.26.16</a><br>
> Trying 172.30.26.16...<br>
> Connected to <a href="http://172.30.26.16" target="_blank">172.30.26.16</a> (<a href="http://172.30.26.16" target="_blank">172.30.26.16</a>).<br>
> Escape character is '^]'.<br>
><br>
> ***********************************************************************<br>
> * Access to this computer system is limited to authorised users only. *<br>
> * Unauthorised users may be subject to prosecution under the Crimes *<br>
> * Act or State legislation *<br>
> * *<br>
> * Please note, ALL CUSTOMER DETAILS are confidential and must *<br>
> * not be disclosed. *<br>
> ***********************************************************************<br>
><br>
><br>
><br>
><br>
> User Access Verification (ISP V1)<br>
><br>
> Username: myusername<br>
> Password:<br>
> Signon successful.<br>
><br>
> spgvsour01c28#<br>
> --------------------------------------------------------------------------------<br>
><br>
> Again, username has been modified for privacy.<br>
><br>
> If anyone can shed some light on what the issue may be, or point me in a<br>
> direction that may enable me to trouble shoot a bit more, that would be much<br>
> appreciated.<br>
><br>
> Regards<br>
><br>
> -Hurgh-<br>
<br>
> _______________________________________________<br>
> Rancid-discuss mailing list<br>
> <a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
> <a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
</div></div></blockquote></div><br>