Forum Discussion
Brad_146558
Oct 18, 2016Nimbostratus
Time based iRule question
Hi everyone,
I'm writing an iRule that triggers a daily maintenance page. I'm trying to get this page to come up between two certain time periods each and every day. I used an iRule I'd found in an...
Stanislas_Piro2
Oct 18, 2016Cumulonimbus
Hi,
look at this irule to change action based on time and week day:
https://devcentral.f5.com/questions/irule-to-block-access-of-vs-on-specific-days
clock scan commands must not be executed in RULE_INIT event if only hour is set. it will convert hour from the day you last loaded the irule.
if today, you load the irule with set
static::start [clock scan "5:00"]
, it will not work for next days but only for today.
If you want for every days, use a variable in CLIENT_ACCEPTED and not a static variable in RULE_INIT
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