Discussion:
[rancid] hlogin HP J9626A RA.16.02.0016
Lucas SOMMERARD
2017-06-08 14:37:39 UTC
Permalink
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 ?
Lucas SOMMERARD
2017-06-08 14:28:24 UTC
Permalink
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]+\\))? 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 ?
Doug Hughes
2017-06-09 02:09:57 UTC
Permalink
the ssh key of the device has changed. Login or sudo to rancid and then
remove the old ssh key from ~rancid/.ssh/known_hosts and then hlogin to
the device to get the new host key. That should fix it.
Post by Lucas SOMMERARD
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.
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://%28[%5e%29/r/n%5d+/%29%29>? 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)
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
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
<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.
PAvant d'imprimer,pensezà l'environnement *ü*
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562)
Per-Olof Olsson
2017-06-09 08:34:06 UTC
Permalink
Hello

Is it new ESC-codes added in late HP/Aruba versionens that make the login problem?
It's possible that You need to patch hpuifilter.c and add filters for “[?7h”, “[1L”, and
“[1M”.

...
Post by Lucas SOMMERARD
LT1-2650-01#
expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-06-08
... --------^^^^

Look for Subject "rancid with hp5412 J8697A or hp5406" posted on this list mars 24 2017.


/Peo
----------------------------------------------------------
Per-Olof Olsson Email: ***@chalmers.se
Chalmers tekniska högskola IT-avdelningen
Arvid Hedvalls backe 6 412 96 Göteborg
Tel: 031/772 6738 Mob: 0707 88 3708
----------------------------------------------------------
Post by Lucas SOMMERARD
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.
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)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-June/004995.html
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>
<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.
PAvant d'imprimer,pensezà l'environnement *ü*
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Lucas SOMMERARD
2017-06-14 12:52:22 UTC
Permalink
Hello,

Indeed It works well after adding these filter to hpuifilter.

Thanks a lot !

Regards,

Lucas SOMMERARD





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.
Avant d'imprimer, pensez à l'environnement

-----Message d'origine-----
De : Per-Olof Olsson [mailto:***@chalmers.se]
Envoyé : vendredi 9 juin 2017 10:34
À : Lucas SOMMERARD <***@owentis.com>; rancid-***@shrubbery.net
Objet : Re: [rancid] hlogin HP J9626A RA.16.02.0016

Hello

Is it new ESC-codes added in late HP/Aruba versionens that make the login problem?
It's possible that You need to patch hpuifilter.c and add filters for “[?7h”, “[1L”, and “[1M”.

...
Post by Lucas SOMMERARD
LT1-2650-01#
expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-06-08
... --------^^^^

Look for Subject "rancid with hp5412 J8697A or hp5406" posted on this list mars 24 2017.


/Peo
----------------------------------------------------------
Per-Olof Olsson Email: ***@chalmers.se
Chalmers tekniska högskola IT-avdelningen
Arvid Hedvalls backe 6 412 96 Göteborg
Tel: 031/772 6738 Mob: 0707 88 3708
----------------------------------------------------------
Post by Lucas SOMMERARD
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.
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)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-June/004995.htm
l
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.ht
ml>
<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>
<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.
PAvant d'imprimer,pensezà l'environnement *ü*
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Heasley
2017-06-17 02:39:04 UTC
Permalink
Post by Lucas SOMMERARD
Hello,
Indeed It works well after adding these filter to hpuifilter.
Thanks a lot !
Regards,
Lucas SOMMERARD
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.
Avant d'imprimer, pensez à l'environnement
-----Message d'origine-----
Envoyé : vendredi 9 juin 2017 10:34
Objet : Re: [rancid] hlogin HP J9626A RA.16.02.0016
Hello
Is it new ESC-codes added in late HP/Aruba versionens that make the login problem?
It's possible that You need to patch hpuifilter.c and add filters for “[?7h”, “[1L”, and “[1M”.
...
Post by Lucas SOMMERARD
LT1-2650-01#
expect: does "\u001b[?7hYour previous successful login (as manager) was on 2017-06-08
... --------^^^^
Look for Subject "rancid with hp5412 J8697A or hp5406" posted on this list mars 24 2017.
These were added to the alpha image and will be in 4.0.
Post by Lucas SOMMERARD
/Peo
----------------------------------------------------------
Chalmers tekniska högskola IT-avdelningen
Arvid Hedvalls backe 6 412 96 Göteborg
Tel: 031/772 6738 Mob: 0707 88 3708
----------------------------------------------------------
Post by Lucas SOMMERARD
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.
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)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-June/004995.htm
l
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.ht
ml>
<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>
<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.
PAvant d'imprimer,pensezà l'environnement *ü*
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Loading...