Forum Discussion
Chris_Day_10331
Nimbostratus
Dec 27, 2005iRules for Individual Testing of Farm Servers
Hello wonderful people at DevCentral!
I have a follow-up to an earlier post I had made “iRule for Server Testing” (http://devcentral.f5.com/default.aspx/Default.aspx?tabid=28&forumid=5&posti...
Chris_Day_10331
Nimbostratus
Jun 12, 2006Hey unRuleY, thanks... I can't seem to get it to work tho. Here's what it looks like now:
when HTTP_REQUEST {
set myNode [findstr [HTTP::uri] "node=" 5 "&"]
if {($myNode ne "") and ([LB::status pool http-pool-mypool member $myNode 80] eq "up")}{
log "Node found."
set used_pool_member 1
pool http-pool-mypool member $myNode 80
} else {
log "Node not found."
persist cookie
pool http-pool-mypool
}
}
when SERVER_CONNECTED {
if { [info exists used_pool_member] && $used_pool_member } {
persist cookie
}
}...I'm using the fancy dancy iRuler... HOT!
Chris
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