ERX bugs in Rancid?
Lemaster, Rob
rlemaste at Covad.COM
Tue Jan 24 02:09:50 UTC 2006
I overheard that there are some bugs with Rancid & Unisphere/Juniper ERX BRASs. Can anyone confirm or deny this? I'm running 2 ERXs, one works fine, but Rancid can't get the config off the other one even though clogin works just fine..
I've run clogin -c with no errors, I've triple-checked my .cloginrc, routers.db, etc, etc. and still can't get Rancid to pick up the last ERX config.
Any thoughts or feedback would be greatly appreciated!
ERROR:
[rancid at rancid-01 bin]$ ./jerancid -d lab-erx-02.lab.covad.com
executing clogin -t 90 -c"show version;show redundancy;show boot;show environment all;dir;show hardware;show configuration" lab-erx-02.lab.covad.com
PROMPT MATCH: Lab-ERX-02#
HIT COMMAND:Lab-ERX-02#show version
In ShowVersion: Lab-ERX-02#show version
HIT COMMAND:Lab-ERX-02#show redundancy
In ShowRedundancy: Lab-ERX-02#show redundancy
HIT COMMAND:Lab-ERX-02#show boot
In ShowBoot: Lab-ERX-02#show boot
HIT COMMAND:Lab-ERX-02#show environment all
In ShowEnv: Lab-ERX-02#show environment all
HIT COMMAND:Lab-ERX-02#dir
In DirSlotN: Lab-ERX-02#dir
write(spawn_id=1): broken pipe
while executing
"send_user -- "$expect_out(buffer)""
invoked from within
"expect -nobrace -re+ { exp_continue } -re {^[^
*]*Lab-ERX-02([^#>\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]*$reprompt." { send..."
invoked from within
"if [ string match "*\;*" "$command" ] {
set commands [split $command \;]
set num_commands [llength $commands]
# the pager can not be turned off on ..."
(procedure "run_commands" line 34)
invoked from within
"run_commands $prompt $command"
("foreach" body line 145)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"
# Figure out the prompt.
# autoenabl..."
(file "/usr/local/rancid/bin/clogin" line 688)
lab-erx-02.lab.covad.com: missed cmd(s): show configuration,show hardware
lab-erx-02.lab.covad.com: missed cmd(s): show configuration,show hardware
lab-erx-02.lab.covad.com: End of run not found
lab-erx-02.lab.covad.com: End of run not found
!
-----Original Message-----
From: owner-rancid-discuss at shrubbery.net [mailto:owner-rancid-discuss at shrubbery.net] On Behalf Of Lemaster, Rob
Sent: Thursday, January 19, 2006 11:12 AM
To: rancid-discuss at shrubbery.net
Subject: Rancid error when pulling ERX configs
Rancid v. 2.3.2a3 on Linux FC4 w/ ViewCVS v 0.9.4
Rancid is pulling configs from all devices except one.
I have another of the same device and that is pulling configs fine.
I tried adding the device by IP only in router.db, unsuccessful.
Device type in router.db is correct.
I can log in and pull configs by using ./clogin -c 'show configuration e i a; show hardware' <devicename>
IP, DNS info is correct, device is reachable by rancid.
Password info is correct (using AAA, autoenable is set to 1)
Any ideas on fixing this issue would be appreciated.
Thanks for your time!
Error log:
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 {^[^
^M *]*Lab-ERX-02([^#>\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]*$reprompt." { send..."
invoked from within
"if [ string match "*\;*" "$command" ] {
set commands [split $command \;]
set num_commands [llength $commands]
# the pager can not be turned off on ..."
(procedure "run_commands" line 34)
invoked from within
"run_commands $prompt $command"
("foreach" body line 145)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"
# Figure out the prompt.
# autoenabl..."
(file "/usr/local/rancid//bin/clogin" line 688)
lab-erx-02: missed cmd(s): show configuration e i a,show hardware
lab-erx-02: End of run not found
!
More information about the Rancid-discuss
mailing list