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 11, 2011Historic F5 Account
Hmmm...it looks like switch -glob kinda works tho when using this iRule I never get traffic to the APP01-APP05 pools. I think the " * " in "/!5.*" maybe causing the mismatch. The original iRule used "/!5." and matched well.
when CLIENT_DATA {
switch -glob [findstr [TCP::payload] "/siebel" 0 " "] {
"/siebel/finsobjmgr_enu" -
"/siebel/smobjmgr_enu" -
"/siebel/eaiobjmgr_enu" -
"/siebel/finsobjmgr_enu/rr" -
"/siebel/smobjmgr_enu/rr" -
"/siebel/eaiobjmgr_enu/rr" {
pool company.org_2321_pool
}
"/!5.*" {
pool APP01_2321_pool
}
"/!7.*" {
pool APP02_2321_pool
}
"/!9.*" {
pool APP03_2321_pool
}
"/!b.*" {
pool APP04_2321_pool
}
"/!d.*" {
pool APP05_2321_pool
}
default {
log local0. "Rejected request for [findstr [TCP::payload] "/siebel" 0 " "]"
discard
}
}
}
What's the wildcard " * " for...a catchall? I wonder if it should look more like "/!5." ??
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