Forum Discussion
Sully_103006
Apr 11, 2011Historic F5 Account
Hmmm...it looks like switch -glob kinda works tho whne 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." ??