Forum Discussion
Ronak_79648
Feb 09, 2012Nimbostratus
no such variable and variable scope
running v 11.1
i have rule.
when ACCESS_POLICY_AGENT_EVENT {
log local0. "Access policy event triggered."
if {[ACCESS::policy agent_id] == "LogonSuccess"} {
log...
naladar_65658
Feb 10, 2012Altostratus
I could be wrong, but it seems like the events as you have them are out of order. You are using a local variable so once you set it, you should be able to call it using that same VIP/connection, but if HTTP_REQUEST is happening before the other event processes then I think you would see what you are seeing there. It can't read the variable because nothing is there. The iRule logging is taking place in the order which you have it in the iRule, but the execution doesn't seem to be following that particular order.
Here is a good iRule that may get you going in the right direction, check out the order of events on that:
http://devcentral.f5.com/wiki/iRules.APM-Portal-Host-Rewrite.ashx
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