Forum Discussion
willsweeper_131
Nimbostratus
Mar 04, 2014Add an iRule to multiple virtual servers
I am looking for a script to add/apply an irule to a list of virtual servers, or virtual servers that contain "www" in the name.
Thanks.
Mar 08, 2014
Hi!
You COULD do some old fasioned stone age excel "magic" too. 🙂
- Select the virtual server list/table in the Web UI
- Copy it to Excel
- You get a column with only virtual server names, remove the other columns.
- Filter the VIP name column for www.
Assuming that your VIP name column is A, input this in column B:
="tmsh modify /ltm virtual " & A1 & " rules { test-rule }"
Autofill the B column and then you're done. 🙂
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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