[rancid] Re: broken pipe errors

john heasley heas at shrubbery.net
Thu May 27 08:13:16 UTC 2010


Wed, May 26, 2010 at 08:45:57PM -0700, Sukh Khehra:
> I downloaded version 2.3.3, compiled rpm with svn support (rpmbuild log
> pasted below), and installed on my system. I added a cisco and an
> juniper device to it to test with. Rancid seems to be able to fetch the
> juniper config fine but throws the following expect error on the cisco
> one. clogin to the cisco device works fine. Anyone have any ideas on
> what I am missing?
> 
> Trying to get all of the configs.
> write(spawn_id=1): broken pipe
>     while executing
> "send_user -- "$expect_out(buffer)""
>     invoked from within
> "expect -nobrace -re+ { exp_continue } -re {^[^
>  *]*testcisco([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
> "$expect_out(buffer)"
>                                                 } -re {^[^
> ..."
>     invoked from within
> "expect {
>             -re "\b+"                           { exp_continue }
>             -re "^\[^\n\r *]*$reprompt"         { send_user --
> "$expect_out(buffer)"
>                                                 }
>             -re "^\[^\n\r]*$reprom..."
>     (procedure "run_commands" line 39)
>     invoked from within
> "run_commands $prompt $command"
>     ("foreach" body line 155)
>     invoked from within
> "foreach router [lrange $argv $i end] {
>     set router [string tolower $router]
>     # attempt at platform switching.
>     set platform ""
>     send_user ..."
>     (file "/usr/bin/clogin" line 722)
> testcisco.sk.local: missed cmd(s): write term,show running-config
> testcisco.sk.local: End of run not found

youre not missing anything.  the device probably has a bug with one
of the commands and its closing the connection prematurely.  pass the
commands that rancid runs in clogin -c 'commands;...' to figure-out
which one is making it angry.


More information about the Rancid-discuss mailing list