Site_Maintenance_Trigger
Problem this snippet solves: Below is a quick method for allowing a user who only has Operator but not Administrator rights to enable a maintenance page via an iRule. An LTM administrative user with...
Published Mar 18, 2015
Version 1.0Joel_Moses
Nimbostratus
Joined September 13, 2006
Joel_Moses
Nimbostratus
Joined September 13, 2006
Samir_Jha_52506
Aug 07, 2016Noctilucent
Thanks Joel,
Please correct me if i am wrong. I believe no need to create fresh VIP for maintenance. This can be achieve with below iRule.
1) Create maintenance page and import to F5(irule--> iFile)
when HTTP_REQUEST {
set ::maintenance_mode [LB::status node 192.168.250.1 session_disabled]
if { ($::maintenance_mode) } {
HTTP::respond 200 content [ifile get "/common/maintenance.html"]
}
}
2). Add HTML contents itself in irule
when HTTP_REQUEST {
set ::maintenance_mode [LB::status node 192.168.250.1 session_disabled]
if { ($::maintenance_mode) } {
HTTP::respond 200 content "Maintenance page Sorry! This site is down for maintenance." "Content-Type" "text/html"
}
}