Forum Discussion
Frank_J_104756
Sep 25, 2007Historic F5 Account
testing external connectivity
Is there a way within the irule to test the server I'm going to redirect to? Basically I want to redirect to http://redirectserver.com if certain criteria are met but only if that server is up and responding. The redirect server may (or may not) be located on the LTM running the irule.
3 Replies
- Deb_Allen_18Historic F5 AccountWell, technically, no....
...but if the redirect target server has a single static IP, you *could* define it as a member of a pool, apply an HTTP monitor, and verify status in an iRule before issuing the redirect...pool FallbackTestPool { member :80 monitor send recvrule RedirectIfFallbackUP { when { if {[LB::status pool FallbackTestPool member 80] != "up"} { HTTP::redirect "..." } else { } } }
HTH
/deb - Frank_J_104756Historic F5 Accountis there a way to test the status of a pool itself not the individual members ?
- Frank_J_104756Historic F5 Accountheard back from Deb...way to do this is
if {[active_members $CookiePool] > 0} {
thanks again Deb!!!!!
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
