Forum Discussion
Brian_Gibson_30
Nimbostratus
Jun 09, 2011Irule causing TMM to reset
Hey all,
So we are trying to create persistence based on SessionId. We use
Unfortunately when we test this is causes the TMM to fail. Here is what the logs say after the ...
hoolio
Cirrostratus
Jun 10, 2011Is this the iRule?
when SERVER_CONNECTED {
TCP::collect
}
when SERVER_DATA {
log local0. "_________________________________________"
set jsessionidsrv [findstr [TCP::payload] "JSESSIONID=" 11 37]
if ($analyse_server!=0) {
log local0. "VALUE jsessionid SERVER: $jsessionidsrv !"
if {$jsessionidsrv != ""}{
log local0. "JESSIONID detected from server , creating persistence entry "
log local0. "connection [IP::client_addr]:[TCP::local_port] to[IP::remote_addr]:[TCP::remote_port]"
persist add uie $jsessionidsrv
TCP::release
}
else {
log local0. "JESSIONID is Not Present : this is NOT NORMAL"
TCP::release
}
}
else {
log local0. "connection [IP::client_addr]:[TCP::local_port] to [IP::remote_addr]:[TCP::remote_port]"
TCP::release
}
log local0. "ENDING SERVER SIDE ANALYSIS"
}
when LB_FAILED {
log local0. "________LB failed_____________"
}
when PERSIST_DOWN {
log local0. "________PERSIST DOWN_____________"
}
when CLIENT_ACCEPTED {
set analyse_server 1
TCP::collect
}
when CLIENT_DATA {
log local0. "_________________________________________"
set jsessionid [findstr [TCP::payload] "JSESSIONID=" 11 37]
log local0. "VALUE jsessionid CLIENT: $jsessionid !"
if {$jsessionid != ""}{
log local0. "JSESSIONID is present on the Client , persisting "
log local0. "connection [IP::remote_addr]:[TCP::remote_port] to [IP::local_addr]:[TCP::local_port]"
persist uie $jsessionid
set analyse_server 0
TCP::release
TCP::collect
}
else {
set analyse_server 1
log local0. "JSESSIONID is Not present"
TCP::release
TCP::collect
}
}
Do you have core files in /shared/core/? If so, has the NSE had someone check them to see if they provide a better explanation of the failure?
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects