Forum Discussion
Aaron_Chu_684
Nimbostratus
Jun 15, 2006LB::status not available in HTTP_REQUEST?
I have this iRule where I'm trying to check if a pool member is up before I send traffic to it, but I don't seem to be able to use the "[LB::status pool member up]" command.
This page say...
Deb_Allen_18
Jun 15, 2006Historic F5 Account
If memory serves, I had some trouble with that command at first as well. This syntax in the example on the wiki page seems to work, though:
if { [LB::status pool www-cache member 10.100.11.60 80] eq "up" } {(Added a note to that effect to the wiki page.)In most cases, if a command is not allowed in the event, you'd get a pretty specific error stating so: "command is not valid in current event context". If you're not getting a syntax error when you load the rule, the easiest way to figure out what's going wrong is often to log the results of the command that's giving you trouble:
log local0. [LB::status pool www-cache member 10.100.11.60 80 up]HTH/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