Discussion:
[rancid] Interesting problem, HP procurve 2800s work fine, 2500s config won't download
Joe McDonagh
2011-01-28 17:39:09 UTC
Permalink
hlogin works fine to both these sets of routers, however the config for
2500s never gets downloaded and I get this trace back:

Getting missed routers: round 4.
write(spawn_id=1): broken pipe
while executing
"send_user -- "$expect_out(buffer)""
invoked from within
"expect -nobrace -re {^[^
*]*x699-25250G-24-PoE-01#} { send_user -- "$expect_out(buffer)"
} -re {^[^
]*x699-25250G-24-PoE-01#.} { send_user --..."
invoked from within
"expect {
-re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
}
-re "^\[^\n\r]*$reprompt." { send_user -- "$expect_out(buffer)"
..."
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 15)
invoked from within
"run_commands $prompt $command"
("foreach" body line 139)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"

# Figure out prompt.
# Since autoena..."
(file "/usr/lib/rancid/bin/hlogin" line 583)
10.5.30.4: missed cmd(s): show stack,show module,write term
10.5.30.4: End of run not found
;
--
Joe McDonagh
AIM: YoosingYoonickz
IRC: joe-mac on freenode
"When the going gets weird, the weird turn pro."
Joe McDonagh
2011-02-03 16:41:02 UTC
Permalink
I followed the debug instructions and found that 'write term' is where
rancid is having a problem. I ran

"hlogin -t 90 -c"show version;show flash;show system-information;show
module;show stack;write term" 10.5.30.3"

And this is what happens:

...
x699-2520-24-PoE-01# show system-information
Invalid input: system-information
x699-2520-24-PoE-01# show module
Invalid input: module
x699-2520-24-PoE-01# show stack

Stacking - Stacking Status (This Switch)
Stack State : Candidate
Transmission Interval : 60
Auto Join : No

x699-2520-24-PoE-01# write term
...

It just hangs there.
Post by Joe McDonagh
hlogin works fine to both these sets of routers, however the config for
Getting missed routers: round 4.
write(spawn_id=1): broken pipe
while executing
"send_user -- "$expect_out(buffer)""
invoked from within
"expect -nobrace -re {^[^
*]*x699-25250G-24-PoE-01#} { send_user -- "$expect_out(buffer)"
} -re {^[^
]*x699-25250G-24-PoE-01#.} { send_user --..."
invoked from within
"expect {
-re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
}
-re "^\[^\n\r]*$reprompt." { send_user -- "$expect_out(buffer)"
..."
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 15)
invoked from within
"run_commands $prompt $command"
("foreach" body line 139)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"
# Figure out prompt.
# Since autoena..."
(file "/usr/lib/rancid/bin/hlogin" line 583)
10.5.30.4: missed cmd(s): show stack,show module,write term
10.5.30.4: End of run not found
;
--
Joe McDonagh
AIM: YoosingYoonickz
IRC: joe-mac on freenode
L'ennui est contre-révolutionnaire
Joe McDonagh
2011-02-03 18:04:30 UTC
Permalink
Post by Joe McDonagh
I followed the debug instructions and found that 'write term' is
where rancid is having a problem. I ran
"hlogin -t 90 -c"show version;show flash;show
system-information;show module;show stack;write term" 10.5.30.3"
...
x699-2520-24-PoE-01# show system-information
Invalid input: system-information
x699-2520-24-PoE-01# show module
Invalid input: module
x699-2520-24-PoE-01# show stack
Stacking - Stacking Status (This Switch)
Stack State : Candidate
Transmission Interval : 60
Auto Join : No
x699-2520-24-PoE-01# write term
...
It just hangs there.
where exactly is "there"? does it output some of the config, then hang?
what does it out with the -d option added?
By 'there' I mean at write term. Nothing outputs after write term. Here
is the output of -d:

$ ./bin/hrancid -d 10.5.30.3
executing hlogin -t 90 -c"show version;show flash;show
system-information;show module;show stack;write term" 10.5.30.3
PROMPT MATCH: x699-2520-24-PoE-01[#>]
HIT COMMAND:x699-2520-24-PoE-01# show version
In ShowVersion: x699-2520-24-PoE-01# show version
HIT COMMAND:x699-2520-24-PoE-01# show flash
In ShowFlash: x699-2520-24-PoE-01# show flash
HIT COMMAND:x699-2520-24-PoE-01# show system-information
In ShowSystem: x699-2520-24-PoE-01# show system-information
write(spawn_id=1): broken pipe
while executing
"send_user -- "$expect_out(buffer)""
invoked from within
"expect -nobrace -re {^[^
*]*x699-2520-24-PoE-01#} { send_user -- "$expect_out(buffer)"
} -re {^[^
]*x699-2520-24-PoE-01#.} { send_user -- "$e..."
invoked from within
"expect {
-re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
}
-re "^\[^\n\r]*$reprompt." { send_user -- "$expect_out(buffer)"
..."
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 15)
invoked from within
"run_commands $prompt $command"
("foreach" body line 139)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"

# Figure out prompt.
# Since autoena..."
(file "/var/lib/rancid/bin/hlogin" line 583)
10.5.30.3: missed cmd(s): show stack,show module,write term
10.5.30.3: missed cmd(s): show stack,show module,write term
10.5.30.3: End of run not found
10.5.30.3: End of run not found
;
--
Joe McDonagh
AIM: YoosingYoonickz
IRC: joe-mac on freenode
L'ennui est contre-révolutionnaire
Joe McDonagh
2011-02-07 23:45:58 UTC
Permalink
FYI, upgrading to 2.3.6 solved this issue. Working beautifully now, and
fixed some stuff with the ASAs diffing files that it shouldn't have been.
Post by Joe McDonagh
hlogin works fine to both these sets of routers, however the config for
Getting missed routers: round 4.
write(spawn_id=1): broken pipe
while executing
"send_user -- "$expect_out(buffer)""
invoked from within
"expect -nobrace -re {^[^
*]*x699-25250G-24-PoE-01#} { send_user -- "$expect_out(buffer)"
} -re {^[^
]*x699-25250G-24-PoE-01#.} { send_user --..."
invoked from within
"expect {
-re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
}
-re "^\[^\n\r]*$reprompt." { send_user -- "$expect_out(buffer)"
..."
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 15)
invoked from within
"run_commands $prompt $command"
("foreach" body line 139)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"
# Figure out prompt.
# Since autoena..."
(file "/usr/lib/rancid/bin/hlogin" line 583)
10.5.30.4: missed cmd(s): show stack,show module,write term
10.5.30.4: End of run not found
;
--
Joe McDonagh
AIM: YoosingYoonickz
IRC: joe-mac on freenode
L'ennui est contre-révolutionnaire
Wilby Sanchez
2015-07-03 11:44:22 UTC
Permalink
I had rancid version 3.1 runing on CentOS 6.6 and CentOS 7.1, and when i
runing that:
[***@CentRancid CVS]$ /usr/libexec/rancid/hrancid -d 192.168.100.85
executing hlogin -t 90 -c"show version;show flash;show system
information;show stack;show tech tran5
sh: hlogin: no se encontró la orden
192.168.100.85: missed cmd(s): all commands
192.168.100.85: End of run not found
192.168.100.85: End of run not found
;
[***@CentRancid CVS]$
***********************************
the command the file "hrancid" have it is that:
# Main
@commandtable = (
{'show version' => 'ShowVersion'},
{'show flash' => 'ShowFlash'},
# {'show system-information' => 'ShowSystem'},
{'show system information' => 'ShowSystem'},
# {'show module' => 'ShowModule'},
{'show stack' => 'ShowStack'},
{'show tech transceivers' => 'ShowTechTransceivers'},
{'show config files' => 'ShowConfigFiles'},
{'show config status' => 'ShowConfigStatus'},
{'write term' => 'WriteTerm'}
);
Post by Joe McDonagh
FYI, upgrading to 2.3.6 solved this issue. Working beautifully now, and
fixed some stuff with the ASAs diffing files that it shouldn't have been.
Post by Joe McDonagh
hlogin works fine to both these sets of routers, however the config for
Getting missed routers: round 4.
write(spawn_id=1): broken pipe
while executing
"send_user -- "$expect_out(buffer)""
invoked from within
"expect -nobrace -re {^[^
*]*x699-25250G-24-PoE-01#} { send_user -- "$expect_out(buffer)"
} -re {^[^
]*x699-25250G-24-PoE-01#.} { send_user --..."
invoked from within
"expect {
-re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
}
-re "^\[^\n\r]*$reprompt." { send_user -- "$expect_out(buffer)"
..."
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 15)
invoked from within
"run_commands $prompt $command"
("foreach" body line 139)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"
# Figure out prompt.
# Since autoena..."
(file "/usr/lib/rancid/bin/hlogin" line 583)
10.5.30.4: missed cmd(s): show stack,show module,write term
10.5.30.4: End of run not found
;
--
Joe McDonagh
AIM: YoosingYoonickz
IRC: joe-mac on freenode
L'ennui est contre-révolutionnaire
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...