Forum Discussion
lunitic_56137
Jul 02, 2012Nimbostratus
Maintenance/sorry page with image on v11.1
I have written maintenance pages in the past with ease. The examples Devcentral were very helpful. The problem with creating one now that I find are the "iFiles" introduction in v11.
The w...
nitass_89166
Jul 02, 2012Noctilucent
this is mine.
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.19.252:http
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
myrule
}
snat automap
vlans-disabled
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:http {
address 200.200.200.101
session monitor-enabled
state down
}
}
monitor fake
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
if {[active_members [LB::server pool]] < 1} {
switch [HTTP::uri] {
"/" { HTTP::respond 200 content [ifile get "index"] }
"/f5-logo.jpg" { HTTP::respond 200 content [ifile get "logo"] }
}
}
}
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm ifile index
ltm ifile index {
file-name index
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm ifile logo
ltm ifile logo {
file-name logo
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list sys file ifile index
sys file ifile index {
checksum SHA1:73:dca073b6657b15686c98bf5c9d5fecefec461453
create-time 2012-07-02:21:29:42
created-by admin
last-update-time 2012-07-02:21:52:02
mode 33188
revision 2
size 73
updated-by admin
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list sys file ifile logo
sys file ifile logo {
checksum SHA1:5960:613133dcd34ea47070f38eca13b414920ade82b8
create-time 2012-07-02:21:26:25
created-by admin
last-update-time 2012-07-02:21:26:25
mode 33188
revision 1
size 5960
updated-by admin
}
- Jason_AdamsSep 18, 2014EmployeeI really like the fact that you are using a switch statement && iFiles to host all of the content on your maintenance page. Great stuff.
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