[rancid] rancid with hp5412 J8697A or hp5406

Nicolas Renault nicolas_renault at yahoo.fr
Mon Mar 13 11:45:54 UTC 2017


Hello ( new mail , first one doesn't appear on the liste),

Problem on rancid after update firmware of switch

- rancid -V
rancid 3.6.2

- switch hp5412 or hp 5406 on recent firmawre  Jan 25 2017 19:23:06   
K.16.02.0016


rancid only hang on the 2 switchs that have this firmware.

found this :

/usr/local/rancid/bin/hlogin -d -noenable -c "show version" 
name_or_ip_of_switch

...

expect: does "" (spawn_id exp7) match glob pattern "Press any key to 
continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
"(>|#) ?"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
Press any key to continue
expect: does "Press any key to continue" (spawn_id exp7) match glob 
pattern "Press any key to continue"? yes
expect: set expect_out(0,string) "Press any key to continue"
expect: set expect_out(spawn_id) "exp7"
expect: set expect_out(buffer) "Press any key to continue"
send: sending " " to { exp7 }
expect: continuing expect

expect: does "" (spawn_id exp7) match glob pattern "Press any key to 
continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
"(>|#) ?"? (No Gate, RE only) gate=yes re=no
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no
Your previous successful login (as manager) was on 2017-03-10 14:19:42
  from 192.168.201.62
name_of_switch#
expect: does "*\u001b[?7h*Your previous successful login (as manager) 
was on 2017-03-10 14:19:42     \r\r\n from 
192.168.201.62\r\r\nNAME_of_switch# " (spawn_id exp7) match glob pattern 
"Press any key to continue"? no
"[Pp]assword:"? Gate "?assword:"? gate=no
"(>|#) ?"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "# "
expect: set expect_out(1,string) "#"
expect: set expect_out(spawn_id) "exp7"
expect: set expect_out(buffer) "*\u001b[?7h*Your previous successful 
login (as manager) was on 2017-03-10 14:19:42 \r\r\n from 
192.168.201.62\r\r\nNAME_of_switch# "
send: sending "\r" to { exp7 }
Gate keeper glob pattern for '[
]+' is ''. Not usable, disabling the performance booster.
Gate keeper glob pattern for '^.+(>|#) ?' is ''. Not usable, disabling 
the performance booster.

expect: does "" (spawn_id exp7) match regular expression "[\r\n]+"? (No 
Gate, RE only) gate=yes re=no
"^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no
NAME_of_switch#
expect: does "*\u001b[1M\u001b[1L*NAME_of_switch# " (spawn_id exp7) 
match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no
"^.+(>|#) ?"? (No Gate, RE only) gate=yes re=yes
expect: set expect_out(0,string) "*\u001b[1M\u001b[1L*NAME_of_switch# "
expect: set expect_out(1,string) "#"
expect: set expect_out(spawn_id) "exp7"
expect: set expect_out(buffer) "*\u001b[1M\u001b[1L*NAME_of_switch# "
send: sending "no page\r" to { exp7 }
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 668)

------------------------------------------

I think that the problem are the special caracters at the beginning of 
prompt *\u001b[1M\u001b[1L*  or *\u001b[?7h*

They add this "brackets [] not balanced" error .

I'm not an expect coder so I search on the mailing list and look onto 
the code

But I don't find any solution. ( hpuifilter is the answers ? )

using the same script on other procurve swtch work perfectly.

Any idea ?

Regards

Nicolas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170313/881c5b97/attachment.html>


More information about the Rancid-discuss mailing list