Forum Discussion
Formater
Jan 27, 2011Employee
How send a string to a specific IP's specific port when all pool members of a VIP are down?
I have a customer who has a pool, which includes there pool members. They want to send some special string in TCP to a specific IP's specific port when all the members of this pool are down. For example, when all members of the pool are down, just send message "down" to 10.10.10.1:12000. The VIP they uses is a Standard type, and the version is v9.3.1
I am wondering to use TCP::response to reponse, but the specific port is NOT port carrried in TCP::response.
Anyone has some idea?
Johnson
- hooleylistCirrostratusHi Johnson,
- Colin_Walker_12Historic F5 AccountAaron: That sounds plausible, actually. You couldn't use LB::server pool in CLIENT_ACCEPTED really, since no pool would have been selected yet, but you could certainly use active_members if you know the specific pool anyway.
when CLIENT_ACCEPTED { if {[active_members yourpoolname] == 0 } { TCP::collect } } when CLIENT_DATA { TCP::payload replace 0 [TCP::payload length] "down" node 10.10.10.1 12000 TCP::release }
- hooleylistCirrostratus[LB::server] and [LB::server pool] will return the virtual server's default pool name until a load balancing decision has been made. Once a load balancing decision has been made, [LB::server] will return a Tcl list with pool, node addr and port.
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