I have no experience with APM and TCL. I just try to build simple policy using Visual Policy Editor for training. The goal is to get HTTP::uri (from the REQUEST) and analize it: if uri contains the word “softtoken” then go to one Logon Page, if not - use another Logon Page. I use some example of iRule to get the uri (found at F5 site). Since I just learning and I’m not so sure what happens, I add message box in every branch after iRule Event item.
NOTHING works as I expected. Firstly, I do not get no one of Message Box screens that I customized. I always get default Message Box (“Please click the link below to continue”), so I cannot determine what branch was choosed. Then I get standard default Logon page, not one of mine. When I press on “Preview” at Customization:General than I can find my Message Boxes and Logon Pages configured as I wanted. But APM does not call them when authentication process executed.
I have three urls pointing to same virtual server, hence creating a visual ediot to specify the urls to match to foward it to a specifc SMAL authtication.
The apm logs shows that Following rule ‘fallback’ from item ‘Start’ to item ‘URL Selection’
Rule evaluation failed with error: invalid command name “HTTP::host”
Rule evaluation failed with error: invalid command name “HTTP::host”
Rule evaluation failed with error: invalid command name “HTTP::host”
Following rule ‘fallback’ from item ‘URL Selection’ to ending ‘Deny’
Looks like HTTP::host is invalied to use in tcl expression.