18-Oct-2023 14:34
Is there a way to automate disabling and then re-enabling a pool member nightly say between 10pm and 7am for maintenance?
18-Oct-2023 21:25
@SteveD1979 I'm not aware of performing a nightly pool member disable. Assuming this is a webserver the better option would be to use the "receive down" string to pull the pool member out of rotation prior to the maintenance starting.
19-Oct-2023 00:48
iCall module allows you to create a scheduler (periodic handlers) in order to execute a specific bash script that you've installed on the BIG-IP. You might use this to run TMSH disable commands, and configure a second scheduler to run the enable command as well.
Scripting it like this would use static variables, so it works as long as you don't need this to be dynamic for different apps. I do agree with @Paulius that using a receive down string on the monitor might still be a better option.
19-Oct-2023 02:50
To get this simpler, just log in to your bigip with ssh and write the command into crontab
ForceOffline:
tmsh modify ltm pool *pool_name* members modify { *1.1.1.1:80* { session user-disabled state user-down } }
Disable:
tmsh modify ltm pool *pool_name* members modify { *1.1.1.1:80* { session user-disabled state user-down } }