jaikumar_f5_226
Nov 29, 2016Nimbostratus
How to disable multiple pool members excluding few.
Hey folks,
Need your suggestions & advise on my requirement. I have pool with 50 members and as a part of some route away activity, I need to disable 40 of its members.
Earlier I thought to go with members all option,
tmsh modify ltm pool poolname { members modify { all { state user-down session user-disabled } }
But I have some concerns on this. If I choose this option, it will create a glitch and remove the active sessions on the remaining 10 pool members as well, which I don't want to happen.
I dont think even a CLI transaction would help, Is there any other work around. As of now I'm with bash script by calling every pool member to be disabled, ignoring the 10.
tmsh modify ltm pool poolname { members modify { mem1:80 { state user-down session user-disabled } } }
tmsh modify ltm pool poolname { members modify { mem2:80 { state user-down session user-disabled } } }