Forum Discussion
hooleylist
Nov 26, 2009Cirrostratus
I don't think you actually need to add a UIE profile in order to use UIE persistence in an iRule. But it wouldn't hurt anything to do so.
Can you add logging back to the rule and post anonymized copies of the log output and the 'b persist all show all' output? You can also log the selected pool member in LB_SELECTED/LB_FAILED:
when CLIENT_ACCEPTED {
log local0. "[IP::client_addr]:[TCP::client_port]: New TCP connection to [IP::local_addr]:[TCP::local_port]"
TCP::collect
}
when CLIENT_DATA {
set jsessionidc [findstr [TCP::payload] "JSESSIONID=" 11 29]
log local0. "[IP::client_addr]:[TCP::client_port]: Parsed \$jsessionidc: $jsessionidc. Lookup: [persist lookup uie $jsessionidc]"
if {$jsessionidc != ""} {
persist uie $jsessionidc 180
}
log local0. "[IP::client_addr]:[TCP::client_port]: releasing and collecting"
TCP::release
TCP::collect
}
when LB_SELECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: pool info: [LB::server]"
}
when LB_FAILED {
log local0. "[IP::client_addr]:[TCP::client_port]: pool info: [LB::server]"
}
Aaron