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

Filter by:
  • Solution
  • Technology
Answers

Clearing Persistent Connections

What iControl method should I call to clear persistent connections on a Node?
I tried calling iControl.LocalLB.Pool.delete_persistence_record() but that deletes all connections under a Pool and I only want to delete connections for specific Nodes under a Pool.
0
Rate this Question

Answers to this Question

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

Here are a couple of related posts:

https://devcentral.f5.com/Forums/tabid/53/aft/58542/Default.aspx#58544
https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/51/aft/63136/showtab/groupforums/Default.aspx

Aaron
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
I tried the instructions from those links but it still didn't clear our current connections on the Node. I have two servers (Nodes) under a Pool and I'm pulling one server (Node) out o service but I still see connections on the Overview->Statistics->Local Traffic->Persistent Records page. This seems like it should be very easy to just clear connections for a specific Node.

Does anyone else have any ideas on how to clear connections for a specific Node?
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Hi Kent,

I'm not sure if you can do this directly with iControl. The available methods do not allow you to delete by specifying the pool member/node address. You could remove the member from the pool and re-add it after a couple of seconds.

Also, you should be able to clear the entries through SSH by using the following TMSH command:


tmsh delete ltm persistence persist-record node-addr x.x.x.x
0