Forum Discussion
Jeff_Jones_4404
Jul 25, 2012Nimbostratus
iRule switching when one site is in maintance mode
is it possible via a script or a cron job to allow for switching iRules on and off based on a maintance schedule from one site to another.
JJ
- HamishCirrocumulusYeah. You can do what you like externally and the use an iControl connection to alter the iRules on a VS... That will only affect new connections though, not established ones.
- Jeff_Jones_4404NimbostratusThanks, now the fun part figure out how to do it, not yet running v11,
- dlg_23340Cirrusyou can also assign and remove iRules with 'tmsh modify ltm virtual rules'
- dlg_23340Cirrusbah. content scrubber ate part of my post. in between "virtual" and "rules" you would put the VIP name.
- hooleylistCirrostratusHamish's suggestion for using an iControl script would probably be the most efficient method. Else, you could also track the current time in the iRule itself and only take a maintenance action during the specific time window(s). Here's an article with examples:
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