Forum Discussion
raddboy_74501
Nimbostratus
Oct 01, 2010Force Pool members offline for Nightly Maintenance?
I've searched this forum for an answer to no avail.
I'm looking to "force offline" all members of a pool at a specific time every night, say 10:00pm. This will keep users out of an applicati...
Oct 05, 2010
This should be doable with the clock command. I wrote a tech tip a while back titled "iRule Maintenance Windows" that allows you to use an iRule to enter the maintenance window times and it then stores those times in a stats profile. Then on inbound requests, if the windows are set, it uses the TCL "clock" command to get the local time of the BIG-IP. If the current time is during the window, the iRule returns a HTML response with an error indicating that maintenance mode is on.
You should be able to easily modify this iRule to hard code in the start and stop times for your window. Let me know if you need any help.
Here's the link to the article:
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/70/iRule-Maintenance-Windows.aspx
-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