[rancid] Re: couldn't compile regular expression pattern: parentheses() not balanced
Mahaffey, Brian
bmahaffey at pelco.com
Wed Jun 23 06:09:43 UTC 2010
I don't know why but I had a duplicate rancid directory located @
/usr/local/rancid once I removed this directory HP switches were working
perfectly. Eh go figure J
From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mahaffey,
Brian
Sent: Monday, June 21, 2010 11:10 AM
To: rancid-discuss at shrubbery.net
Subject: [rancid] couldn't compile regular expression pattern:
parentheses() not balanced
Rancid 2.3.3 expect 5.43
When rancid runs I am unable to collect data from HP switches via hlogin
I get an error in the log file.
When I manually run hlogin -c 'show run' HP5308-B6-1 I get a device
timeout.
If I run hlogin HP5308-B6-1 rancid logins successfully.
I have tried this on another HP 5406 switch with the same issues.
-bash-3.2$ hlogin HP5308-B6-1
hp5308-b6-1
spawn ssh -c 3des -x -l rancid hp5308-b6-1
rancid at hp5308-b6-1's password:
ProCurve J4819A Switch 5308xl
Software revision E.11.10
HP5308-B6-1> enable
Password:
HP5308-B6-1#
HP5308-B6-1# exit
HP5308-B6-1> exit
Do you want to log out [y/n]? y
-----------------------------------------------------
-bash-3.2$ hlogin -c 'show run' HP5308-B6-1
hp5308-b6-1
spawn ssh -c 3des -x -l rancid hp5308-b6-1
rancid at hp5308-b6-1's password:
HP5308-B6-1> enable
Password:
HP5308-B6-1#
HP5308-B6-1# couldn't compile regular expression pattern: parentheses ()
not balanced
while executing
^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 9)
invoked from within
"run_commands $prompt $command"
("foreach" body line 148)
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 "/mnt/iscsi/apps/rancid/bin/hlogin" line 594)
---------------------------------------------------------------
I don't know how much of this is relevant for you my apologizes I just
grabbed a snip from the log file.
"expect {re "\[\n\r]+"md{ exp_continue }show module,show flash,show
version,show system-information,write term,show system information
}"-b-re $repromptrun{}ot found
(pro-re "\[\n\r]+"mm{ exp_continue }
}"voked from withind(s): show stack,show module,show flash,show
version,show system-information,write term,show system information
(procedure "run_commands" line 9)
invoked from withine 148)
"run_commands $prompt $command"w stack,show module,show flash,show
version,show system-information,write term,show system information
^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }"intolower $router]show module,show flash,show
version,show system-information,write term,show system information
^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }"g tolower $router]
^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }""t.{ exp_continue }ern: parentheses () not balanced
^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[in" line 594)
]+} { exp_continue }""mm{ exp_continue }ern: parentheses () not balanced
^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }""mm{ exp_continue }show module,show flash,show
version,show system-information,write term,show system information
invoked from withine{}48)found
"expect {re "\[\n\r]+"mm{ exp_continue }
}" -re $reprompt {}
(pro-re "\[\n\r]+"mm{ exp_continue }
}"voked from withine 148) $i end] {
(procedure "run_commands" line 9)r]
invoked from withine 148) $i end] {
"run_commands $prompt $command"$router]tern: parentheses () not balanced
("foreach" body line 148) $i end] {login" line 594)
invoked from withintolower $router]tern: parentheses () not balanced
"foreach router [lrange $argv $i end] {login" line 594)
set router [string tolower $router]tern: parentheses () not balanced
send_user "$router\n"s/rancid/bin/hlogin" line 594)
set timeout [find t..."pression pattern: parentheses () not balanced
# device timeouti/apps/rancid/bin/hlogin" line 594)
^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[n: parentheses () not balanced
]+} { exp_continue }"/apps/rancid/bin/hlogin" line 594)
^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[w module,show flash,show
version,show system-information,write term,show system information
]+} { exp_continue }"un not found
invoked from withind{}): show stack,show module,show flash,show
version,show system-information,write term,show system information
"expect {re "\[\n\r]+"un{ exp_continue }
}" -re $reprompt {}
(pro-re "\[\n\r]+"mm{ exp_continue }show module,show flash,show
version,show system-information,write term,show system information
}"voked from withinn not found
(procedure "run_commands" line 9)k,show module,show flash,show
version,show system-information,write term,show system information
invoked from withine 148)ound
"run_commands $prompt $command"
("foreach" body line 148) $i end] {
invoked from withintolower $router]
"foreach router [lrange $argv $i end] {show module,show flash,show
version,show system-information,write term,show system information
set router [string tolower $router]
send_user "$router\n"
set timeout [find t..."pression pattern: parentheses () not balanced
# device timeouti/apps/rancid/bin/hlogin" line 594)
set timeout [find t..."pression pattern: parentheses () not balanced
(file "/mnt/iscsi/apps/rancid/bin/hlogin" line 594)
This transmission is intended only for use by the intended
recipient(s). If you are not an intended recipient you should not read,
disclose copy, circulate or in any other way use the information
contained in this transmission. The information contained in this
transmission may be confidential and/or privileged. If you have received
this transmission in error, please notify the sender immediately and
delete this transmission including any attachments.
This transmission is intended only for use by the intended
recipient(s). If you are not an intended recipient you should not read,
disclose copy, circulate or in any other way use the information
contained in this transmission. The information contained in this
transmission may be confidential and/or privileged. If you have received
this transmission in error, please notify the sender immediately and
delete this transmission including any attachments.
This transmission is intended only for use by the intended
recipient(s). If you are not an intended recipient you should not read,
disclose copy, circulate or in any other way use the information
contained in this transmission. The information contained in this
transmission may be confidential and/or privileged. If you have received
this transmission in error, please notify the sender immediately and
delete this transmission including any attachments.
This transmission is intended only for use by the intended
recipient(s). If you are not an intended recipient you should not read, disclose copy, circulate or in any other way use the information contained in this transmission. The information contained in this transmission may be confidential and/or privileged. If you have received this transmission in error, please notify the sender immediately and delete this transmission including any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100622/e83686ff/attachment.html
More information about the Rancid-discuss
mailing list