Forum Discussion
heskez_36146
Nimbostratus
Feb 09, 2016Icontrol snapin script add-f5.ltmvirtualserverrule
Hi, I was looking for an easy way to quick apply an Irule to a bunch of virtual servers, this is eventually being used to publish a maintenance page on a couple of websites.
So I foooled around...
Mar 01, 2016
Maybe not a one liner, but you should be able to use the Get-F5.iControl cmdlet to assign the virtual to the rule. I wrote a tech tip on using the iControl rules methods here: https://devcentral.f5.com/articles/icontrol-101-09-irules
There is a section on how to create and apply rules to a virtual.
If you are using PowerShell, I'd check out the PowerShell page in the iControl wiki where there are bunch of samples and articles to reference.
Hope this helps...
-Joe
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