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
May 24, 2006If 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.
If you want to delete the rule from a number of virtual servers then delete the rule, then you can create a file like:
b virtual vs1 {
rule none
}
b virtual vs2 {
rule none
}
...
b rule thisrule delete
Then merge it with a 'b merge filename'.This will delete all the rules applied to the specified virtuals. If there are other rules you don't want to delete just list them on the rule line instead of the keyword 'none'
-Al
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