Forum Discussion
Manuel_Rodrigu2
Nimbostratus
May 10, 2006Apply a single iRule to several VS with a single action
Hi,
I'm trying to apply an iRule to several Virtual Servers using a single action. I guess that can be done with a script using the CLI. Do you have any ideas, examples?
Thanks
- Al_Carandang_11
Nimbostratus
This is what i do:virtual vs1 { rule newrule } virtual vs2 { rule newrule } virtual vs3 { rule newrule } ...
bigpipe save
bigpipe merge
virtual vs { rule oldrule newrule }
- Manuel_Rodrigu2
Nimbostratus
Thanks Al, it works!!! - iControl is probably your best bet there. It's a very simple method to add/remove rules from Virtuals.
- Al_Carandang_11
Nimbostratus
If you want to delete a single rule, it is easy to do on the GUI. However, you can't delete a rule if it is applied to a virtual. You'll have to delete it from all the virtual servers to which it has been apllied first.
Then merge it with a 'b merge filename'.b virtual vs1 { rule none } b virtual vs2 { rule none } ... b rule thisrule delete
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