Rapid iRule Removal via Tmsh Script
The BIG-IP GUI is pretty slick and there have been massive improvements in function and efficiency since my first exposure in version 4.2. As good as it is, however, some tasks are just better suite...
Published May 14, 2010
Version 1.0JRahm
Admin
Joined January 20, 2005
JRahm
Admin
Joined January 20, 2005
Ariel_Santa_Cr1
Sep 03, 2013Historic F5 Account
Hi Jason,
Thanks for the quick answer.
I did some troubleshooting on this but I'm not much of developer so I might be missing something very basic for you.
All the logging I did was through the PUTS command so I can see it right in the screen after the script execution.
Added many logs as flags to understand where the flow was going through. Logged the variables $rules and $rulename before the IF. Even logged the complete function [lsearch -exact $rules $rulename] to know the value the function returns. It always returns a -1.
These are the values of the parameters before the IF and LSEARCH execution:
$rules: {rules /Common/_sys_https_redirect}
$rulname: /Common/_sys_https_redirect
Do you see any reason of why the LSEARCH function will not find the string within the rules? Note that I have also tried removing the -exact option to the LSEARCH.
Thanks!
Ariel