Discussion:
[rancid] Problem with switch HP Procurve 2610
izumi mutsu
2011-06-30 01:47:58 UTC
Permalink
Hi,

I just installing RANCID 2.3.6 and making backup for Juniper, Cisco
and Netscreen was working good. Unfortunately it won't work with
switch HP Procurve 2610.
I'm was trying like this :

$ clogin -c 'sh run' 10.10.10.2

and here's the result

SW1-RXM# couldn't compile regular expression pattern: parentheses () not balancd
while executing
"expect -nobrace -re { [24;1H([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 21)
invoked from within
"run_commands $prompt $command"
("foreach" body line 166)
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 743)

How do to fix this ?, thanks.
izumi mutsu
2011-06-30 05:59:52 UTC
Permalink
Post by izumi mutsu
Hi,
I just installing RANCID 2.3.6 and making backup for Juniper, Cisco
and Netscreen was working good. Unfortunately it won't work with
switch HP Procurve 2610.
$ clogin -c 'sh run' 10.10.10.2
you have to use hlogin for HP procurves.  it uses to hpuifilter.
hlogin works

hlogin -autoenable 10.12.3.241
10.12.3.241
spawn hpuifilter -- telnet 10.12.3.241
Trying 10.12.3.241...
Connected to 10.12.3.241 (10.12.3.241).
Escape character is '^]'.
ProCurve J9085A Switch 2610-24
Software revision R.11.30

Copyright (C) 1991-2009 Hewlett-Packard Co. All Rights Reserved.

RESTRICTED RIGHTS LEGEND

but rancid won't make config file for this switch as the size of file was 0
Post by izumi mutsu
and here's the result
SW1-RXM# couldn't compile regular expression pattern: parentheses () not balancd
    while executing
"expect -nobrace -re { [24;1H([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }"
    invoked from within
"expect {
            -re $reprompt       {}
            -re "\[\n\r]+"      { exp_continue }
        }"
    (procedure "run_commands" line 21)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 166)
    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 743)
How do to fix this ?, thanks.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Continue reading on narkive:
Loading...