Forum Discussion

jaikumar_f5_226's avatar
jaikumar_f5_226
Icon for Nimbostratus rankNimbostratus
Nov 29, 2016

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 }  }  }

2 Replies

  • do you have to do this in cli? you can also do this in gui, and force them offline, which will only leave active and persistent connections on the pool members until they are done.

     

    and if there is to be only 10 members, why not create a new pool with the 10 remaining pool members, and switch it on the virtual server?

     

    • jaikumar_f5's avatar
      jaikumar_f5
      Icon for MVP rankMVP

      Thanks for your input Kai. Well creating new pool was what my suggestion too, but its not allowed due to some reasons, its for scenarios where overload takes place and we would turn on/off these extra 10 servers.

       

      Going with GUI is not a good option, since this not just 1 pool I'm dealing with. There's a lot. Going with BASH script with CLI commands in it is our only option.