Forum Discussion
Tim_Moomaw_9220
Nimbostratus
Nov 09, 2008Scheduled Maintenance Window
--- Obligatory "I'm new to iRules" ----
I'm trying to create a rule to return a maintenance page every Saturday morning between 0200 and 0600. I have copied a few examples ...
Tim_Moomaw_9220
Nimbostratus
Nov 25, 2008This one appears to be working correctly:
if { ([lindex $l 0] eq "Saturday") &&
([format "%g" [lindex $l 1]] >= 8) &&
([format "%g" [lindex $l 1]] < 9) } {
....
This one still gives an octal number error:
if { ([lindex $l 0] eq "Saturday") &&
([lindex $l 1] >= 08.) &&
([lindex $l 1] < 09.) } {
....
I haven't had time to play with this one:
set cur_time "[lindex $l 1][lindex $l 2]"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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