Forum Discussion
GavinW_29074
Nimbostratus
Nov 04, 2011Stats Profile funnies...
Hi there,
I'm trying to implement an iRule for a dyncamic maintenance page using the following iRule: http://devcentral.f5.com/wiki/iRules.LTMMaintenanceWindow.ashx
However I'm ha...
GavinW_29074
Nimbostratus
Nov 09, 2011Ok, I've gone back and simplified the rule so that it can be easily checked from other rules...
New rule looks like:
Edit: Posted in next reply as formatting when strange...
The framework for other rules to check for the maintenance window is:
when RULE_INIT {
Debug
set static::debug 1
set static::MAINTENANCE "maintenance_window"
}
when HTTP_REQUEST priority 300 {
if { [table lookup -subtable $static::MAINTENANCE [virtual name]] != "" } {
In Maintenance mode. Log and return.
if { $static::debug == 1 } {log local0.info "In Maintenance mode. Returning..." }
return
} else {
Not in Maintenance mode. Continuing...
if { $static::debug == 1 } {log local0.info "Not In Maintenance mode. Continuing..." }
Do stuff here...
}
}
Again, comments welcome...
I'll also look at getting this submitted to Code Share at some point over the next couple of days.
Regards
Gavin
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
