Forum Discussion
Type11_8030
Nimbostratus
Mar 21, 2011Persistance Rule based on Query String
I am a Cisco ASA guy who now as some f5s to manage (they rock btw). One thing I need to migrate almost immediately and don't have time to figure out everything about IRule (tcl) syntax is to do a per...
Steve_Brown_882
Mar 21, 2011Historic F5 Account
This should actually be fairly easy. Really all you need to do is set a variable to the value of this Query String param and then use the var for universal persistence. I found another thread that did something similar and modified hoolio's response form there.
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/1171677/showtab/groupforums/Default.aspx
Check if query string parameter named Source IP has a value
http://devcentral.f5.com/wiki/default.aspx/iRules/uri__query
set sourceIP [URI::query "?&[HTTP::query] &sourceIP]
if {$sourceIP ne ""}{
Persist off of the source IP value
persist uie $sourceIP
}
}
Once the irule is created you simply create a universal persistence profile and point to this irule. Apply that to you VS and viola...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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