Forum Discussion

Nick_Matthews's avatar
Nick_Matthews
Icon for Altostratus rankAltostratus
Mar 07, 2008

Temp redirect on certain day

Hi,

 

 

Is it possible with an irule to only redirect the URL on a certain date? Ie, if the site was going to be down only on Sunday I would want the rule to only redirect traffic on that specific date. Is this possible at all?

 

 

Thanks for your help

 

 

Nick

5 Replies

  • Hi,

     

     

    You can retrieve time information based on the clock command.

     

     

    http://www.tcl.tk/man/tcl8.5/TclCmd/clock.htm

     

     

    HTH
  • If you search the forum, there are several date related examples.
  • Check out this tech tip I wrote a while back and it might get you going in the right direction...

     

     

    iRule Maintenance Windows

     

    http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=70

     

    Click here

     

     

     

    -Joe
  • Hi Joe,

     

     

    Thank you very much for your reply, that is pretty much exactly what I was looking for.

     

     

    Nick