Forum Discussion
AlgebraicMirror
Altostratus
Oct 12, 2016Is there any way in an iRule to tell if APM is enabled or disabled on a connection?
Hi guys. Does anyone know if there is a way to tell if APM is enabled or disabled on a given connection? For example, I can turn APM on or off in an iRule using these commands:
ACCESS::disable...
Walter_Kacynski
Cirrostratus
Oct 12, 2016If you are using ACCESS::disable then the easiest way would be to set a user defined tcl variable to indicate the state. I have found no combination of built-in commands that is completely error proof or that require complicated parameter passing.
ACCESS::disable
set access_disabled 1
if {$access_disabled} {
Do Stuff outside of APM
}
You might be able to get ACCESS::session sid working but this also requires that you code an if check to do a sting comparison which I guess would be more CPU expensive than doing an integer check with your own variable.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects