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
Joined August 23, 2012
VernonWells
Nov 22, 2016Employee
For 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.