active_nodes¶
Description¶
Returns the alias for active members of the specified pool (for BIG-IP
version 4.X compatibility).
Syntax¶
active_nodes <pool name>
active_nodes -list <pool_name>
active_nodes <pool name>¶
- Returns the number of active members of the specified pool (for BIG-IP version 4.X compatibility).
active_nodes -list <pool_name>¶
- Returns a tcl list containing the IP address of each active member in the specified pool.
- The -list option was added in 9.4.2?
Examples¶
when HTTP_REQUEST {
log local0. "There are [active_nodes http_pool] active nodes in the pool."
}
when CLIENT_ACCEPTED {
# Check if the client IP address is a node in the VIP's default pool
if {[matchclass [IP::client_addr] equals [active_nodes -list [LB::server pool]]]}{
log local0. "SNAT'ing for [IP::client_addr], member of pool [LB::server pool]"
snat automap
}
}