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 12, 2006This is what i do:
1) Log into the BigIP via ssh
2) Create a file which contains
virtual vs1 {
rule newrule
}
virtual vs2 {
rule newrule
}
virtual vs3 {
rule newrule
}
...
3) Make sure you have a backup of the config by executing
bigpipe save
4) Execute the command
bigpipe merge
This will change the rule line of the virtuals you specify. Note that if you have other rules applied to the virtual, this will overwrite the config so you would have to use
virtual vs {
rule oldrule newrule
}
if you want to retain the old rule.
-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