Forum Discussion
Chris_Chaloux_1
Nimbostratus
Apr 22, 2008iRule 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!
- 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.
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