[rancid] hlogin HP J9626A RA.16.02.0016

Doug Hughes doug.hughes at keystonenap.com
Fri Jun 9 02:09:57 UTC 2017


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.


On 6/8/2017 10:37 AM, Lucas SOMMERARD wrote:
>
> 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://%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)
>
>  
>
> 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
>
> <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

-- 
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562) 	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170608/5843c427/attachment.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: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170608/5843c427/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keystone-nap.png
Type: image/png
Size: 3476 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170608/5843c427/attachment.png>


More information about the Rancid-discuss mailing list