Forum Discussion
Steve_Brown_882
Aug 12, 2011Historic F5 Account
Issue with scan commend?
I am working on what should be a really simple irule, but for some reason I cannot get the scan command to work. I have simplified the entire rule down to the following code to trouble shoot.
...
Muhammad_64435
Aug 12, 2011Nimbostratus
Hi Steve, try this
when HTTP_REQUEST
{
set host [HTTP::host]
log local0. "host -> $host"
scan $host {%[^.].%[^.].%s} h1 h2 h3
log local0. "host -> $host ; h1 -> $h1 ; h2 -> $h2 ; h3 -> $h3"
}
Reference link:
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/2346/iRules-101--16--Parsing-Strings-with-the-TCL-Scan-Command.aspx
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