Add Pool Members in Batch

We are adding tons of new servers to our pool and we have 2 different F5 appliances, so I’m looking for an easier way to add a bunch of new members to existing pools.

I haven’t done any F5 scripting or anything, so I’m coming at this as a complete noob.

Any help getting me in the right direction would be awesome.

You can try cli

eg:pool name myPool and node 10.10.10.10 and port 80

tmsh modify ltm pool myPool members add { 10.10.10.10:80 { address 10.10.10.10}}

Should be able to create a shell script based on this.

please read the below article and see if that helps. You need to modify scricpt as per your requirement.

As per given URL DevCentral - An F5 Technical Community, how to execute the code with new server IP’s?