Forum Discussion

Chris_Chaloux_1's avatar
Chris_Chaloux_1
Icon for Nimbostratus rankNimbostratus
Apr 22, 2008

iRule Manipulation

Nooby question:

 

 

How can I activate / de-activate an iRule from either the command line or from Java / .NET type page. Has anyone done this?

 

 

Thanks!

1 Reply

  • If you are on a 4.x system, which I'm assuming you are since you are posting to the v4.x forum, then you'll want to look at the ITCMLocalLB.VirtualServer interface where you can assign iRules. Specifically the get_rule() and set_rule() methods are what you'll want. You'll need to query all the existing rules, remove the one you want deactivated from the list, and then call set_rule() with the new list of rules minus the one you are deactivating.

     

     

    You can also do this with the bigpipe command and the GUI.

     

     

    -Joe