Sahir_180434
Jan 21, 2016Nimbostratus
Need help with iRule error log message
Hi all,
I am working on upgrading an ltm from 10.2.4 to 11.5.3, all iRules on current 10.2.4 code are working fine but when did the upgrade I got the following error on one of the iRules:
Jan 20 02:25:37 ltm-app1 err tmm1[16614]: 01220001:3: TCL error: /Common/ets_80-rule - bad IP address format (line 1)failed to find pool member (line 1) invoked from within "pool ets_80-pool member [session lookup uie [findstr [HTTP::uri] "jsessionid" 11 "!"] ]"
here is the used iRule:
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] } {
set trimID [lindex [split [HTTP::cookie "JSESSIONID"] "!" ] 0 ]
if { [session lookup uie $trimID] equals "" } {
session add uie $trimID [IP::server_addr] 1800
log local0. "added server entry [session lookup uie $trimID] for jsessionID $trimID "
} else {
`
log local0. "existing server entry [session lookup uie $trimID] for jsessionID $trimID"
` }
}
`
}
when HTTP_REQUEST {
if { [active_members et-pool] == 0 } {
HTTP::redirect "http://[HTTP::header "X-Forwarded-Host"]/unavailable/etServices.html"
} else {
if { [HTTP::header exists "X-Forwarded-Host"] } {
HTTP::header replace "Host" [HTTP::header "X-Forwarded-Host"]
}
if { [HTTP::cookie exists "em-et"] } {
log local0. "Persisting by cookie em-et, contents are [HTTP::cookie "em-et"]"
`} else {
if { [findstr [HTTP::uri] "jsessionid" 11 "!"] != ""} {
pool ets_80-pool member [session lookup uie [findstr [HTTP::uri] "jsessionid" 11 "!"] ]
`
log local0. "jsessionID [findstr [HTTP::uri] "jsessionid" 11 "!"] sent to [session lookup uie [findstr [HTTP::uri] "jsessionid" 11 "!"] ]"
` } else {
pool ets_80-pool
`
log local0. "No jsession ID, local balancing the connection..."
` }
}
}
}
I have little knowledge of iRules, and this rule is not part of my littile knowledge
any help to fix the issue ?
Thanks.