Forum Discussion
7 Replies
Sort By
- JGCumulonimbus
You can easily model after the following example:
https://devcentral.f5.com/wiki/iRules.Print.aspx?Page=iRules.Time-based-iRule-example
- nitass_89166Noctilucent
one dollar sign is missing.
if {$now > $static::start and $now < $static::end} {
- toki_132571Nimbostratusありがとうございます。エラーは解消されました。 ただ、どうしてもpoolを指定しないでやるやり方はありますか? 現状は以下の様になっています。 でもそのままメンテナンスページを表示させたいです。 when RULE_INIT { set static::start_date "2013-08-29 14:40" set static::end_date "2013-08-29 14:50" set static::start [clock scan $static::start_date] set static::end [clock scan $static::end_date] } when CLIENT_ACCEPTED { Get the current time in seconds since the Unix epoch of 0-0-1970 set now [clock seconds] Check if the current time is between the start and end times if {$now > $static::start and $now < $static::end} {pool global-http} } when HTTP_REQUEST { HTTP::respond 200 content "
メンテナンス中" } - toki_132571Nimbostratusありがとうございました。 なんとかやりたい事が出来ました。
- nitassEmployee
one dollar sign is missing.
if {$now > $static::start and $now < $static::end} {
- toki_132571Nimbostratusありがとうございます。エラーは解消されました。 ただ、どうしてもpoolを指定しないでやるやり方はありますか? 現状は以下の様になっています。 でもそのままメンテナンスページを表示させたいです。 when RULE_INIT { set static::start_date "2013-08-29 14:40" set static::end_date "2013-08-29 14:50" set static::start [clock scan $static::start_date] set static::end [clock scan $static::end_date] } when CLIENT_ACCEPTED { Get the current time in seconds since the Unix epoch of 0-0-1970 set now [clock seconds] Check if the current time is between the start and end times if {$now > $static::start and $now < $static::end} {pool global-http} } when HTTP_REQUEST { HTTP::respond 200 content "
メンテナンス中" } - toki_132571Nimbostratusありがとうございました。 なんとかやりたい事が出来ました。