iRules Recipe 4: Static Maintenance Page
The Problem
You wish to provide a static maintenance splash page when all members of a pool serving a Virtual Server are currently down or disabled.
The Configuration
# cat /var/tmp/splash-...
Updated Jun 06, 2023
Version 2.0VernonWells
Employee
I am an F5 Solutions Architect for Service Providers in the Americas, focusing on Virtualization, SP protocols (Diameter, GTP, DNS) and programmability.
Prior to joining F5, I worked as a Wi-Fi Network Engineer for a large U.S. public University, as an Operations Engineer, a network management Software Engineer, and as a Technical Trainer.VernonWells
Employee
Nov 22, 2016For the first, I failed to include the data-group name. This should be:
set attr [class lookup [HTTP::path] splash-page-assets]
You are also correct on the
getfield argument order. It turns out the error was cascading. I forgot to include the data-group name, but the parser complained instead about the getfield order. That sometimes happens on parsing. I will attempt to fix this article with the corrected code. Thank you for pointing this out.Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)