F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Leav97's avatar
Leav97
Icon for Altocumulus rankAltocumulus
Aug 14, 2019
Solved

iRule to verify node is member of pool and passing the pools health check

I have an irule that uses a table to determine which node a client should use. I'd like to have the rule double check the node is passing health checks and is a member of a pool. Just as a precauti...
  • Leav97's avatar
    Sep 09, 2019

    when SERVER_CONNECTED {  

     set TargetNode [table lookup tbltst[TCP::local_port]]

       set ActiveNode [active_members -list test-pool]

     

    if {$TargetNode eq "" } {

       return

       }

    if {$ActiveNode contains $TargetNode } {

       node $TargetNode

     }

    }