Forum Discussion
Sully_103006
Apr 08, 2011Historic F5 Account
Is there anyway to make this Siebel iRule more efficient?
when CLIENT_ACCEPTED {
TCP::collect 1 }
when CLIENT_DATA {
if { [findstr [TCP::payload] "/siebel" 0 " "] == "/siebel/finsobjmgr_enu" } {
log local0. "Using pool company...
Sully_103006
Apr 12, 2011Historic F5 Account
The now tweaked iRule:
when CLIENT_ACCEPTED {
TCP::collect 1
}
when CLIENT_DATA {
switch -glob [findstr [TCP::payload] "/siebel" 0 " "] {
"/siebel/finsobjmgr_enu" -
"/siebel/smobjmgr_enu" -
"/siebel/eaiobjmgr_enu" -
"/siebel/sccobjmgr_enu" -
"/siebel/finsobjmgr_enu/rr" -
"/siebel/smobjmgr_enu/rr" -
"/siebel/eaiobjmgr_enu/rr" -
"/siebel/sccobjmgr_enu/rr" {
log local0. "Using pool company.org_2321_pool"
pool company.org_2321_pool
}
"*/!5.*" {
log local0. "Using pool company.org_APP01_2321_pool"
pool company.org_APP01_2321_pool
}
"*/!7.*" {
log local0. "Using pool company.org_APP02_2321_pooll"
pool company.org_APP02_2321_pool
}
"*/!9.*" {
log local0. "Using pool company.org_APP03_2321_pool
pool company.org_AP03_2321_pool
}
"*/!b.*" {
log local0. "Using pool company.org_APP04_2321_pool"
pool company.org_APP04_2321_pool
}
"*/!d.*" {
log local0. "Using pool company.org_APP05_2321_pool"
pool company.org_APP05_2321_pool
}
default {
log local0. "Rejected request for [findstr [TCP::payload] "/siebel" 0 " "]"
discard
}
}
}
...so I now need to get a change request to apply this new rule (sigh) and test. The string does usually looks something like:
pool.company.org:2321/siebel/finsObjMgr_enu/!5.8d0ac.d0005c.4d9e146d.000013964d9d0cf4
but also:
pool.company.org:2321/siebel/finsObjMgr_enu/RR/!5.8d0ac.d0005c.4d9e146d.000013964d9d0cf4
and...
pool.company.org:2321/siebel/finsObjMgr_enu/rr/!5.8d0ac.d0005c.4d9e146d.000013964d9d0cf4
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