I got a problem with my lab F5 boxes were they ran out of memory , so while checking the possibility we found nearly 200 stale sessions which are stale for more than 5days.
I tried the commands which were referring to few similar issues , but had no luck, we know rebooting the F5 box will kill those sessions but rather than rebooting we will be pleased if we have any tmsh command to kill those stale sessions as a temp fix.
If you mean connections, “tmsh delete sys connection …” is the command you’re looking for. It has quite a few options for choosing which connections you want to delete.
Could you please let us know how you identify the stale connections?
At first I thought you wanted to clear the connections between TMSH and TMM (which I would consider a bug) :). If you want to clear all connections you can run
tmsh delete sys connection
like shaggy suggested.
Perhaps the services are re-establishing the connection after you close it?
When we saw our boxes “ran out of memory”, we checked with other boxes, we found many sessions opened from the same ip-address, ad idle for past days, we cannot reboot those boxes.
We have stopped the communication with F5 with that particular IP address, but really tmsh delete sys connection didnt help us.