Forum Discussion
[active_members -list [LB::server pool]] does not show all members in case Priority Groups are used
Hi,
I have the situation, that [active_members -list [LB::server pool]] shows only 2 Servers of the Pool. The command [active_members [LB::server pool]] returns the number 3. The Pool is configured with 2 Servers at priority group 2 and one server at priority group 1. The Priority Group Activation is configured as 'less than 1'. I use Big-IP 11.3.0
Is there an alternate command to return all active pool members independent of the priority group?
Thanks, Rolf
iRule Log: log local0. "Matching pool: [LB::server pool]; Active members: [active_members -list [LB::server pool]]" log local0. "pool has [active_members [LB::server pool]] active members"
/var/log/ltm: Aug 21 10:19:44 slot2/xxxxxxx info tmm1[7759]: Rule /xxxx/pool-select_retransmit-on-5xx : Matching pool: /xxxx/xx-pool; Active members: {10.1.1.1%601 80} {10.1.1.2%601 80} Aug 21 10:19:44 slot2/xxxxxxx info tmm1[7759]: Rule /xxxx/pool-select_retransmit-on-5xx : pool has 3 active members
1 Reply
- Kevin_Stewart
Employee
You could perhaps do something like this:
when CLIENT_ACCEPTED { foreach x [members -list [LB::server pool]] { if { [LB::status pool [LB::server pool] member [lindex $x 0] [lindex $x 1]] eq "up" } { log local0. $x } } }
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