Forum Discussion
I use tmsh to remove connections quite frequently. The display syntax is this (to actually delete, use "delete" instead of "show"):
tmsh show /sys connection
Without any optional filters, this command will display every connection in the connection table. Use the following filters to isolate the connection(s) you want to delete (there are a couple of additional obscure ones I didn't include):
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
ss-server-addr: Specifies the serverside remote address of the active connections
ss-server-port: Specifies the serverside remote port of the active connections
For example, say I had a client with address 10.10.10.200 connecting to a HTTPS VIP with address 172.16.0.100, which is being load-balanced to Pool Member 192.168.3.50:80. To isolate that specific connection, the command would be:
tmsh show /sys connection cs-client-addr 10.10.10.200 cs-server-addr 172.16.0.100 cs-server-port 443 ss-server-addr 192.168.3.50 ss-server-port 80
To delete, change "show" to "delete". If you have trouble understanding these filters, let me know and I'll clarify a bit.