Forum Discussion
What_Lies_Bene1
Cirrostratus
Apr 04, 2006Runtime Error Overide
Hi All
I've just experienced this error;
TCL error: Rule irule_all_blah_blah - can't read "::HOSTS_CLIENT1": no such variable while executing "matchclass [IP::client_addr] equals $::HOSTS_CLIENT1"
I know why it happened, I wrongly deleted the Data Group HOSTS_CLIENT1.
However, the irule in question (and many others) deals with a great deal of incoming traffic for multiple clients. This error stops the iRule running entirely, affecting all the clients. Is there any way to have this error ignored/keep the irule running?
And please don't say "split the irule per client," I'd have hundreds, hardly an enterprise grade approach.
Thanks in advance.
- JRahm
Admin
Add error checking for each variable you use so the condition is checked only if there is a value. if exists ... - What_Lies_Bene1
Cirrostratus
Thank you. - Gerald_Chisholm
Nimbostratus
can you be more explicit of how this is done, do you use a "catch"? - JRahm
Admin
Use catch when evaluating commands, use info exists when evaluating variables. Check out this thread:
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