[rancid] hlogin HP J9626A RA.16.02.0016

Lucas SOMMERARD LSOMMERARD at owentis.com
Wed Jun 14 12:52:22 UTC 2017


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:peo at chalmers.se]
Envoyé : vendredi 9 juin 2017 10:34
À : Lucas SOMMERARD <LSOMMERARD at owentis.com>; rancid-discuss at 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”.

...
 > 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: peo at chalmers.se
Chalmers tekniska högskola    IT-avdelningen
Arvid Hedvalls backe 6        412 96 Göteborg
Tel: 031/772 6738     Mob: 0707 88 3708
----------------------------------------------------------

Den 2017-06-08 kl. 16:37, skrev 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.
>
>
>
> 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.htm
> l
>
> 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.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
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>


More information about the Rancid-discuss mailing list