<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>
</p>
<div class="moz-text-html" lang="x-unicode">
<p>Hello ( new mail , first one doesn't appear on the liste), <br>
</p>
<p>Problem on rancid after update firmware of switch <br>
</p>
<p>- rancid -V<br>
rancid 3.6.2<br>
</p>
<p>- switch hp5412 or hp 5406 on recent firmawre Jan 25 2017
19:23:06 K.16.02.0016</p>
<p><br>
</p>
<p>rancid only hang on the 2 switchs that have this firmware. <br>
</p>
<p>found this : <br>
</p>
<p>/usr/local/rancid/bin/hlogin -d -noenable -c "show version"
name_or_ip_of_switch</p>
<p>...</p>
<p>expect: does "" (spawn_id exp7) match glob pattern "Press any
key to continue"? no<br>
"[Pp]assword:"? Gate "?assword:"? gate=no<br>
"(>|#) ?"? (No Gate, RE only) gate=yes re=no<br>
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no<br>
Press any key to continue<br>
expect: does "Press any key to continue" (spawn_id exp7) match
glob pattern "Press any key to continue"? yes<br>
expect: set expect_out(0,string) "Press any key to continue"<br>
expect: set expect_out(spawn_id) "exp7"<br>
expect: set expect_out(buffer) "Press any key to continue"<br>
send: sending " " to { exp7 }<br>
expect: continuing expect<br>
<br>
expect: does "" (spawn_id exp7) match glob pattern "Press any
key to continue"? no<br>
"[Pp]assword:"? Gate "?assword:"? gate=no<br>
"(>|#) ?"? (No Gate, RE only) gate=yes re=no<br>
"[^\r\n]*[\r\n]+"? (No Gate, RE only) gate=yes re=no<br>
Your previous successful login (as manager) was on 2017-03-10
14:19:42 <br>
from 192.168.201.62<br>
name_of_switch# <br>
expect: does "<b>\u001b[?7h</b>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<br>
"[Pp]assword:"? Gate "?assword:"? gate=no<br>
"(>|#) ?"? (No Gate, RE only) gate=yes re=yes<br>
expect: set expect_out(0,string) "# "<br>
expect: set expect_out(1,string) "#"<br>
expect: set expect_out(spawn_id) "exp7"<br>
expect: set expect_out(buffer) "<b>\u001b[?7h</b>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# "<br>
send: sending "\r" to { exp7 }<br>
Gate keeper glob pattern for '[<br>
]+' is ''. Not usable, disabling the performance booster.<br>
Gate keeper glob pattern for '^.+(>|#) ?' is ''. Not usable,
disabling the performance booster.<br>
<br>
expect: does "" (spawn_id exp7) match regular expression
"[\r\n]+"? (No Gate, RE only) gate=yes re=no<br>
"^.+(>|#) ?"? (No Gate, RE only) gate=yes re=no<br>
NAME_of_switch# <br>
expect: does "<b>\u001b[1M\u001b[1L</b>NAME_of_switch# "
(spawn_id exp7) match regular expression "[\r\n]+"? (No Gate, RE
only) gate=yes re=no<br>
"^.+(>|#) ?"? (No Gate, RE only) gate=yes re=yes<br>
expect: set expect_out(0,string) "<b>\u001b[1M\u001b[1L</b>NAME_of_switch#
"<br>
expect: set expect_out(1,string) "#"<br>
expect: set expect_out(spawn_id) "exp7"<br>
expect: set expect_out(buffer) "<b>\u001b[1M\u001b[1L</b>NAME_of_switch#
"<br>
send: sending "no page\r" to { exp7 }<br>
couldn't compile regular expression pattern: brackets [] not
balanced<br>
while executing<br>
"expect -re $prompt {}"<br>
("foreach" body line 163)<br>
invoked from within<br>
"foreach router [lrange $argv $i end] {<br>
set router [string tolower $router]<br>
send_user "$router\n"<br>
<br>
# device timeout<br>
set timeout [find t..."<br>
(file "/usr/local/rancid/bin/hlogin" line 668)<br>
<br>
</p>
<p>------------------------------------------</p>
<p>I think that the problem are the special caracters at the
beginning of prompt <b>\u001b[1M\u001b[1L</b> or <b>\u001b[?7h</b></p>
<p>They add this "brackets [] not balanced" error .<br>
</p>
<p>I'm not an expect coder so I search on the mailing list and
look onto the code <br>
</p>
<p>But I don't find any solution. ( hpuifilter is the answers ? )
<br>
</p>
<p>using the same script on other procurve swtch work perfectly. <br>
</p>
<p>Any idea ? <br>
</p>
<p>Regards <br>
</p>
<p>Nicolas<br>
</p>
</div>
</body>
</html>