Bulk-controlling pool member state - noob question
We are getting ready to roll out our BigIPs to replace some old Juniper load balancers. That said, the task has fallen on me to create a system that controls pool state, much like we have on our Junipers (accomplished via a series of "saved" SSH commands).
I'm learning this is much different in the F5 world. Here's the deal - I don't program (sys admin) and don't have ready access to a programmer. I do know a little powershell but I am still very much in the learning stages.
That said, I have the sample PoolMemberControl.ps1 script that I found on this site, and it works just fine if you want to manipulate only one pool member at a time. But our devices have MANY pools with MANY members in each (one for each of our 5 physical web servers)... so they need to be manipulated in bulk. So if we want to take down a particular back end application server, I may be targeting 9 pools on just one physical host to disable.
I did get the PoolMemberControl.ps1 to do it by creating ANOTHER PS script and doing this over and over (where 10.x.1.1 is the actual IP of the F5 device, and the 10.x.2.110:PORT is the node name of the pool member)
c:\f5scripts\PoolMemberControl.ps1 10.x.1.1 10.x.2.110:80 Disabled
c:\f5scripts\PoolMemberControl.ps1 10.x.1.1 10.x.2.110:443 Disabled
c:\f5scripts\PoolMemberControl.ps1 10.x.1.1 10.x.2.111:80 Disabled
c:\f5scripts\PoolMemberControl.ps1 10.x.1.1 10.x.2.111:443 Disabled
(...and so on)
It is SLOW to approach it this way and I don't think it's the best approach.
Can anyone offer any advice?
Many thanks!