[rancid] hlogin HP J9626A RA.16.02.0016

Lucas SOMMERARD LSOMMERARD at owentis.com
Thu Jun 8 14:37:39 UTC 2017


Hello,

I have some issues with Rancid to backup configuration of an HP switch since it has been update to RA.16.02.0016.
I'm using rancid 3.2 on CentOs 6.9.

This is the error I get using hlogin in debug :
Your previous successful login (as manager) was on 2017-06-08 16:17:53
from 192.168.1.22
LT1-2650-01#
expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-06-08 16:17:53     \r\r\n from 192.168.1.22\r\r\nLT1-2650-01# " (spawn_id exp3) match glob pattern "Press any key to continue"? no
"[Pp]assword"? Gate "?assword"? gate=no
"#"? yes
expect: set expect_out(0,string) "#"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) "\u001b[?7hYour previous successful login (as manager) was on 2017-06-08 16:17:53     \r\r\n from 192.168.1.22\r\r\nLT1-2650-01#"
send: sending "\r" to { exp3 }
Gate keeper glob pattern for '[
]+' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '^.+#' is '*#'. Activating booster.

expect: does " " (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no
"^.+#"? Gate "*#"? gate=no
LT1-2650-01#
expect: does " \u001b[1M\u001b[1LLT1-2650-01# " (spawn_id exp3) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no
"^.+#"? Gate "*#"? gate=yes re=yes
expect: set expect_out(0,string) " \u001b[1M\u001b[1LLT1-2650-01#"
expect: set expect_out(spawn_id) "exp3"
expect: set expect_out(buffer) " \u001b[1M\u001b[1LLT1-2650-01#"
send: sending "no page\r" to { exp3 }
                                                                      LT([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))<file://([%5e)/r/n%5d+/))>?    couldn't compile regular expression pattern: parentheses () not balanced
    while executing
"expect {
        -re $reprompt   {}
        -re "\[\n\r]+"  { exp_continue }
    }"
    (procedure "run_commands" line 20)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 161)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # device timeout
    set timeout [find t..."
    (file "/usr/libexec/rancid/hlogin2" line 662)

I've seen this subbject : http://www.shrubbery.net/pipermail/rancid-discuss/2010-June/004995.html
And I've tried to upgrade rancid to 3.6.2 using source but I still have a problem :
couldn't compile regular expression pattern: brackets [] not balanced
    while executing
"expect -re $prompt     {}"
    ("foreach" body line 163)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # device timeout
    set timeout [find t..."
    (file "/usr/local/rancid/bin/hlogin" line 666)

Thank you for your help.

Regards,

Lucas Sommerard

<http://www.ozitem.com/divers-g0-societe_actu_evt_autre.html>

<http://www.ozitem.com/news-groupe-g0-societe_actu_presse.html>

<http://www.ozitem.com>

<http://www.ozitem.com/>

<http://cloud.owentis.com/>

<http://cloud.owentis.com/index.php/livre-blanc-sauvegarde-en-ligne.html>

<http://recrutement.ozitem.com/lecteur-dune-actualite/items/le-groupe-ozitem-participe-au-challenge-contre-la-faim.html>

<http://cloud.owentis.com/index.php/catalogue.html>

<http://cloud.owentis.com/index.php/evenements.html>

<http://www.owentis.com/index.php/evenements.html>

<http://www.owentis.com/index.php/evenements.html>

[cid:signature-de-mail-535x165px-OUA2017_deec520d-65e5-4b99-b50a-15a623384ca4.jpg]<https://fr.surveymonkey.com/r/eventbyowentis>

Les informations figurant sur cet e-mail ont un caract?re strictement confidentiel et sont exclusivement adress?es au destinataire mentionn? ci-dessus. Tout usage, reproduction ou divulgation de cet e-mail est strictement interdit si vous n'en ?tes pas le destinataire. Dans ce cas, veuillez nous en avertir imm?diatement par la m?me voie et d?truire l'original.

P Avant d'imprimer, pensez ? l'environnement ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170608/5f55545a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature-de-mail-535x165px-OUA2017_deec520d-65e5-4b99-b50a-15a623384ca4.jpg
Type: image/jpeg
Size: 84088 bytes
Desc: signature-de-mail-535x165px-OUA2017_deec520d-65e5-4b99-b50a-15a623384ca4.jpg
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170608/5f55545a/attachment-0001.jpg>


More information about the Rancid-discuss mailing list