Forum Discussion
Oct 21, 2011
pool check numeric values
Hello Community,
I'm trying to determine what each numeric value means when checking a pool's state.
ex)
3) iRule3->VS3:
when HTTP_REQUEST { ...
Michael_Yates
Nimbostratus
Oct 21, 2011If you want to check the status of a node you can use the LB::status command.
http://devcentral.f5.com/wiki/iRules.LB__status.ashx
Your iRule would look something like this:
when HTTP_REQUEST {
log local0. "Node 1 Status: [LB::status pool my.pool.name member 10.10.10.10 80]"
log local0. "Node 2 Status: [LB::status pool my.pool.name member 20.20.20.20 80]"
if { [LB::status pool my.pool.name member 10.10.10.10 80] eq "down" } {
HTTP::redirect "http://www.yahoo.com"
}
if { [LB::status pool my.pool.name member 20.20.20.20 80] eq "down" } {
HTTP::redirect "http://www.msn.com"
}
}
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