Forum Discussion

Dayton_Jones_12's avatar
Dayton_Jones_12
Icon for Nimbostratus rankNimbostratus
Jun 17, 2013

Need to change lb method on several hundred pools

I need to modify the "lb method" in several hundred pools, on several LTMs. Right now the pools are using the default of RoundRobin, but I need to change to "Predictive (member)"

 

 

Looking at the bigip.conf file, there are no "lb method" entries except for the test pools that I set through the GUI. I've created a perl script using the BigIP::ParseConfig module, but this only modifies the pool if the "lb method" entry already exists, it does not add the entry.

 

 

How can I easily/safely add the new method to all the pools? Any help will be greatly appreciated.

 

1 Reply

  • The iControl LocalLB.Pool.set_lb_method() would do what you want. You can pass in a list of pools and the respective lb methods in a single call.

     

    https://devcentral.f5.com/wiki/iControl.LocalLB__Pool__set_lb_method.ashx

     

    The implementation would depend on the language you are chosing but would be fairly easy to write.

     

    -Joe