Forum Discussion
F5 Maintenance Page iRule produces ERR_CONNECTION_RESET in browser
Hi,
How can we automate this F5 Maintenance Page configuration during a planned outage pls?
thanks
Do you mean how the maintenance page can be automatically triggered during an outage, or how to deploy the configuration for the maintenance page automatically?
In the first case, you could for example do it using the Fallback Host option in an HTTP profile, which then redirects to a virtual server with something like the above iRule attached to it. In the second case, you are able to do it using iControl.
If you tell me which one you are looking for, happy to give you some further information.
- enthuguyMay 13, 2023Nimbostratus
Thanks Alex!
If you could guide me in both the scenarios, that would be a great help
Please note, I'm new to F5 but since I'm part of automation team would like to assist my team to automate these manual steps we follow right now.
Current process that we follow:
- Just before outage
- From F5 Console, Identify the current iRule configured, make a note
- We update the iRule with outage page related rule.
- Once implementation is over
- Update iRule back with Step2 rules.
Intended automation
- Automation script should get the LB name as an argument
- Perform above current process steps 2 and 3
- Once implementation is over
- Will rollback the change
Thanks in advance
- enthuguyMay 13, 2023Nimbostratus
Is there better way to achieve this? 🙂
- AlexBCTMay 15, 2023Cumulonimbus
I think the following might do what you're looking for; https://my.f5.com/manage/s/article/K14702105
You can add this to any existing iRule, or just add it as a separate iRule to any eligible Virtual Server. This also means you don't have to worry about updating anything when you notice outages happening/will be happening soon and no further automation needed.
If you'd rather have a bit more elegant outage page, you can also replace the HTTP::respond command with an HTTP::redirect and send the user to a completely separate web server for a better page.
Hope this helps.
- enthuguyMay 16, 2023Nimbostratus
Thanks Alex, much appreciated!
Recent Discussions
Related Content
* 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