Forum Discussion
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
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!