Forum Discussion
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