Forum Discussion

What_Lies_Bene1's avatar
What_Lies_Bene1
Icon for Cirrostratus rankCirrostratus
Apr 04, 2006

Runtime 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.

4 Replies

  • Add error checking for each variable you use so the condition is checked only if there is a value. if exists ...
  • can you be more explicit of how this is done, do you use a "catch"?

     

     

    Add error checking for each variable you use so the condition is checked only if there is a value. if exists ...
  • Use catch when evaluating commands, use info exists when evaluating variables. Check out this thread:

     

     

    http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=4342