Discussion:
[rancid] nxrancid 4.2(1)N1(1) on Nexus 5010 bombing on ShowEnv and ShowCores
Ryan West
2010-07-19 20:52:43 UTC
Permalink
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
john heasley
2010-07-19 21:59:21 UTC
Permalink
Post by Ryan West
John,
...
Post by Ryan West
return(-1) if (/\% Invalid command at /);
Got it, thanks! it should work by changing this to return(1).
Ryan West
2010-07-20 02:03:16 UTC
Permalink
-----Original Message-----
Sent: Monday, July 19, 2010 5:59 PM
Post by Ryan West
John,
Just upgraded to 2.3.4 and was having issues with nxrancid. Debugs on
...
Post by Ryan West
return(-1) if (/\% Invalid command at /);
Got it, thanks! it should work by changing this to return(1).
That did it, thanks for the quick fix.

-ryan

Loading...