Forum Discussion
How long should an old version of an iRule hang around?
- Mar 26, 2014
Ah, I apologize I had been assuming your traffic was HTTP traffic which is short lived. Changes like this are applied to all new connections. It sounds like as you discovered you can either stop the application or clear the current connection table to ensure the change applies to all connections.
Ah, I apologize I had been assuming your traffic was HTTP traffic which is short lived. Changes like this are applied to all new connections. It sounds like as you discovered you can either stop the application or clear the current connection table to ensure the change applies to all connections.
- Casey_Lucas_167Mar 26, 2014NimbostratusIt was HTTP traffic but the connections were persistent (keep-alive, etc.). Good to know about the "new connections". Do you know if there is a way within the LTM to "clear the current connection table"? I'm just looking for a reliable and fast irule development cycle. Ex: make changes to irule, clear connection table, retest. Thanks BTW.
- safeinst_110941Mar 26, 2014CirrusDo not confuse persistent connections with active connections. An easy way to distinguish the two. View connection table: tmsh show sys connection View persistence table tmsh show ltm persistence persist-records Either can be deleted by doing a: tmsh delete sys connection or tmsh delete ltm persistence persist-records Please keep in mind that this will impact client traffic.
- Casey_Lucas_167Mar 27, 2014NimbostratusThanks. I found that when developing / testing irules these persistent browser connections can be annoying because the persistent connections will not be using my latest irule changes. So, in case someone else is interested in the specific commands that will clear connections to a specific virtual, here's what I used for clearing connections. I have two virtual servers (port 80 and 443) for ip 10.15.43.41 and want to drop all the client connections to both of them. ~~~ tmsh show sys connection cs-server-addr 10.15.43.41 Sys::Connections 10.15.16.149:63250 10.15.43.41:80 any6.any any6.any tcp 7 (tmm: 1) none 10.15.16.149:63077 10.15.43.41:80 any6.any any6.any tcp 31 (tmm: 0) none 10.15.16.149:63252 10.15.43.41:80 any6.any any6.any tcp 37 (tmm: 1) none ~~~ These are my test browser connections. I want them to go away so I can test my irule changes. This command will get rid of them: ~~~ tmsh delete sys connection cs-server-addr 10.15.43.41 tmsh show sys connection cs-server-addr 10.15.43.41 Sys::Connections Total records returned: 0 ~~~ If you only want to kill connections to a specific virtual, you might include the port using the cs-server-port option.
Recent Discussions
Related Content
* 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