We need to put one of our websites into a ‘maintenance’ splash page and would like to automate the process as it will happen in the middle of the night. I’ve written an iRule that will redirect requests to an alternate site but am not sure if I can use something like CRON with an ‘at’ command in an iRule?
In searching the postings it looks like I need an iControl to do this? I don’t even know what an iControl is and I took 4 days worth of basic and advanced training.
Anyway, can somebody let me know if this is possible. Here is my iRule that I need to turn on at 9pm and turn off at 4am:
when HTTP_REQUEST {
if { [IP::remote_addr] contains “172” }
{
HTTP::redirect https://websiteforinternalusers.com/
}
else
{
HTTP::redirect http://maintenancewebsite.com/
}
}