Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Force the open/existing connection of pool members to be closed

Hi,


I would like to force the open/existing current connection of pool members (sharepoint server) become 0 (under local traffic-> Pools). The connections that still alive will take a while to be closed or timed out. Is there a way to kill/close the existing connection to the pool members?
 

Regards,
Thunderbird
1
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Hi,

Do you want to close the connections to a members marqued down by a monitor ?

In that case you may choose a value for "Action on Service Down" on the pool definition different from the default value None , Reselect is the one i use.

Regards,

Fred
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Or if you want to clear all existing connections to a pool member without a monitor action, you can use:

b conn ss server 1.1.1.10:80 delete

or:

tmsh delete /sys connection ss-server-addr 1.1.1.10 ss-server-port 80

Aaron
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Hi,

Thank you for your help. Need some clarification here. 

b conn ss server 1.1.1.10:80 delete

For 1.1.1.10, is it the IP address for pool members and 80 is the service port? 

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Hi thunderbird,

This is correct. In the command that Hoolio gives you above, "b conn ss server 1.1.1.10:80 delete" 1.1.1.10 represents the pool member, and 80 does indeed represent the service port. If you had connections on port 8080 that you wanted to delete, you'd just sub the port assignment, so it would look like this:

b conn ss server 1.1.1.10:8080 delete

Please let us know if you have further questions.

Cheers,
Helen
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Is it possible to clear one connections to the pool instead of clear all connections?

0
Comments on this Answer
Comment made 24-Nov-2014 by Jason Adams
It is absolutely possible. Below are a couple of examples. # To delete a connection where Client=1.2.3.4, and is connected to pool member 1.1.1.10:8080 # Using bigpipe: bigpipe conn client 1.2.3.4 ss server 1.1.1.10:8080 delete # Using tmsh: tmsh delete sys conn cs-client-addr 1.2.3.4 ss-server-addr 1.1.1.10 ss-server-port 8080 See the following for full details on these commands. You will find that they are very diverse and powerful: Traffic Management Shell (tmsh) Reference Guide: (Note, there is a new tmsh reference guide released for every new version of BIG-IP) https://support.f5.com/content/kb/en-us/products/big-ip_ltm/manuals/product/bigip-tmsh-11-4-0/_jcr_content/pdfAttach/download/file.res/bigip-tmsh-11-4-0.pdf Bigpipe Utility Reference Guide: https://support.f5.com/content/kb/en-us/products/big-ip_ltm/manuals/product/bigip_utility_reference_guide_10_1_0/_jcr_content/pdfAttach/download/file.res/Bigpipe_Utility_Reference_Guide.pdf
0
Comment made 24-Nov-2014 by shaggy 2250
look into the tmsh /sys connection command. just specify more detail when running the command: (tmos)# delete sys connection ? Options: all Includes all items Properties: "{" Optional delimiter age Specifies the age, in seconds, of a connection cs-client-addr Specifies the clientside remote address of the active connections cs-client-port Specifies the clientside remote port of the active connections cs-server-addr Specifies the clientside local address of the active connections cs-server-port Specifies the clientside local port of the active connections protocol Specifies the protocol used for specified connections (for example: tcp, udp) ss-client-addr Specifies the serverside local address of the active connections ss-client-port Specifies the serverside local port of the active connections ss-server-addr Specifies the serverside remote address of the active connections ss-server-port Specifies the serverside remote port of the active connections type Specifies the connnection type used for specified connections (for example: any, mirror, self)
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
0
Comments on this Answer
Comment made 22-Nov-2014 by Jie 2751
Check this out: https://devcentral.f5.com/questions/deleting-current-active-connections-on-a-bigip
0