Forum Discussion
Irule trigger applying to all pool members and just want it to apply to pool member with session_disabled
Hi All
I wonder if someone could assist me with an irule that I have put together.
The irule triggers but applies the HTTP:close to all pool members and I just want to send the trigger to the member with the session_disabled state:
when HTTP_RESPONSE { foreach pool_member [members -list [LB::server pool]] { if { [LB::status pool [LB::server pool] member [getfield $pool_member " " 1] [getfield $pool_member " " 2]] equals "session_disabled" } { HTTP::close log local0. "http:close" } } }
Thanks
1 Reply
- Vijay_E
Cirrus
Have you tried this: https://devcentral.f5.com/questions/pool-member-status-page-on-a-virtual-server-v11-30188
Also, this iRule may provide a framework to achieve something similar but not the exact requirements that you need - something to try out:
when HTTP_RESPONSE { if { [LB::status pool [LB::server pool] member [LB::server addr] [LB::server port]] eq "session_disabled" } { HTTP::close log local0. "HTTP::close" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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