Katherine_G_106
Nov 03, 2006Nimbostratus
Variable or function to return name of current pool?
Good afternoon,
I have been writing a few simple iRules & a call to F5 support directed me to DevCentral. This looks like a super resource!
Now for my question: I am working on a generic iRule that will redirect to a maintenance site if no members of the pool are active. So far it looks like this:
when HTTP_REQUEST {
if { [active_members p_mypool_http ] < 1 } {
HTTP::redirect http://my.maint.page.com
}
}
I want to apply this iRule to all of my virtual servers, but I don't want to duplicate it for every virtual server just beacuse the name of the pool is explicitly referenced (p_mypool_http in this case).
How can I retrieve & assign the name of the virtual server's current pool to a variable so that I can write one rule for all virtual servers?
thanks!
Katherine