Forum Discussion
Matt_Williamson
Nimbostratus
Mar 29, 2005iRule to persist on tcp_content
Hi all, I'm trying to write a rule that will search the first 2500 bytes of tcp_content for the "USERNAME=" string and then persist on the next 7 characters after that. Here is my original attempt. ...
Matt_Williamson
Nimbostratus
Mar 30, 2005Hi, the script searches for the string "USERNAME=" in the 2500 bytes of tcp data collected. The way the actual stream looks is like this......
Displayt..0t..Env.31t..USERNAME=s009999t..Env.30t..
The 9 and the "t" tell it to start 9 bytes after "USERNAME=" (since it's 9 bytes long) and stop at "t". This way it's reading "s009999" which is the userid I want to persist on. The value in the "t" position can be what ever fits for you. For the streams I'm looking at they are separted by "t..".
Cheers,
Matt
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
