Hien_Truong
Oct 15, 2020Cirrus
Scheduling of an iRules for specific time
i need help to schedule the irules (2 irules) for specific time.
1) Run the below irule on Monday from 5:00 am to 1:30 am Tuesday then stop this irule:
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] eq "abc.com") and ([string tolower [HTTP::uri]] eq "/hello") } {
HTTP::redirect "https://abc.com/web/PRAu/"
}
}
2) Run the below irule on Tuesday from 10:30 am to 3:00 am Wednesday then stop this irule and run this irule again on Wednesday from 9:00 am to 10:00 am then stop.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "abc.com"} {
HTTP::respond 302 Location "https://abc.com/fastservice-dashboard"}
}
Thanks for your help.