Disable (Only persistent or active connections allowed) a Pool member through a monitor in v9.x
I am trying to disable a pool member in V9.x (primarily for for maintenance purposes) without any admin access to the bigip (no https, no ssh, no icontrol) based on the content of an object on the target server. (i.e using HTTP Monitors)
The requirement is driven by a financial organization that completely locks down access to their F5 estate once the unit are in production.
As far as I know there is no way to do this from the GUI (hopefully i am wrong) so i can think of 2 ways to do this:
1. Write up an irule that on HTTP_REQUEST checks the status of a 'dummy' pool member with LB::status pool and then disables the production pool member with LB::down pool.
2. Write a cron job that check the status of the 'dummy' member with "b pool my_pool members all monitor" at regular intervals and, if marked down, disables the production members with "b pool my_pool member my_pool_member session disable".
Both methods seem quite cumbersome and not particularly elegant so i was wondering if anyone has come across a better way of doing this.