[rancid] nxrancid 4.2(1)N1(1) on Nexus 5010 bombing on ShowEnv and ShowCores

Ryan West rwest at zyedge.com
Mon Jul 19 20:52:43 UTC 2010


John,

Just upgraded to 2.3.4 and was having issues with nxrancid.  Debugs on nxrancid showed the following:

show environment clock
    In ShowEnv: cust-nx1# show environment clock
cust-nx1: show environment clock failed: -1
write(spawn_id=1): broken pipe
    while executing
"send_user -- "$expect_out(buffer)""
    invoked from within
"expect -nobrace -re+ { exp_continue } -re {^[^
*]*qpay-iad2-n([^#>\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 159)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    # attempt at platform switching.
    set platform ""
    send_user ..."
    (file "/usr/local/rancid/bin/clogin" line 738)

And ..

show cores vdc-all
    In ShowCores: cust-nx1# show cores vdc-all
cust-nx1: show cores vdc-all failed: -1
write(spawn_id=1): broken pipe
    while executing
"send_user -- "$expect_out(buffer)""
    invoked from within
"expect -nobrace -re+ { exp_continue } -re {^[^
*]*qpay-iad2-n([^#>\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 159)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    # attempt at platform switching.
    set platform ""
    send_user ..."
    (file "/usr/local/rancid/bin/clogin" line 738)

Commented out new additions to file at line 305 and 606:
return(-1) if (/\% Invalid command at /);

Thanks,

-ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100719/f7b5d378/attachment.html 


More information about the Rancid-discuss mailing list