Forum Discussion
Luke_55733
Nimbostratus
Oct 22, 2012Node selection via URL parameters
Hello everyone! I'm trying to do the following...
I would like to monitor individual parts of one of our applications by hitting each member within the F5 pool on a regular basis, and always wit...
nathe
Cirrocumulus
Oct 22, 2012All
I wonder if this will work? Not at my lab so can't check syntax. Don't be afraid anyone to come back and tell me if this is complete nonsense and won't work.
when HTTP_REQUEST {
switch [findstr [HTTP::query] "node=" 5 ] {
"MNS1" {
HTTP::uri [string range [HTTP::uri] 0 end-10]
node x.x.x.x port
}
"MNS2" {
node y.y.y.y port
HTTP::uri [string range [HTTP::uri] 0 end-10]
}
default {
log local0. "No node= match"
}
}
}
Obviously don't know how many parameter values there are or what you want to happen if there's no match.
Here's hoping,
N
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