Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Disable multiple Poolmember with BigIq & Rest API

Hi Folks

I would like to disable/enable mmultiple poolmembers with only one REST-Call trough BigIq

I have a solution to do that member-based with multiple REST-Calls, but thats not my goal.

BigIq Version: 5.1 BigIp Version: 11.6.1

Thanks for help

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hi Theo, Sorry the late response. Yes, you can enable/disable pool members with this self-service task call using 5.1 Big-IQ. 'https://'iq_address'/mgmt/cm/adc-core/tasks/self-service'

http://bigiq-cm-restapi-reference.readthedocs.io/en/latest/HowToGuides/ADC/t_pools_and_pool_members_management.html#pool-member-enable-disable-force-offline

Here is a script that will allow you to populate a csv with pool members to perform some action against all.

https://github.com/carldubois/adcapi

Example usage:

ACTION TO ENABLE

./modify_pool_member.py -op enable -name app_serv-1_pool -iq 10.255.72.20 -iq_user admin -iq_pass admin -csv members.csv Enumerate all pool mambers to find: app_serv-1_pool Found pool: app_serv-1_pool INFO: Perform action enable on pool member boston-node_1:1723 INFO: Perform action enable on pool member 10.55.2.20:80 INFO: BIG-IQ 10.255.72.20 pool member operation. SUCCESS

LIST ALL POOL MEMBERS

./modify_pool_member.py -op enable -name app_serv-1_pool -iq 10.255.72.20 -iq_user admin -iq_pass admin -csv members.csv -list Enumerate all pool mambers to find: app_serv-1_pool Found pool: app_serv-1_pool Pool member 10.44.101.52:443: State user-up: Session user-disabled Pool member boston-node_1:1723: State user-up: Session user-enabled Pool member seattle-node_1:23: State user-up: Session user-disabled Pool member 10.55.2.20:80: State user-up: Session user-enabled INFO: BIG-IQ 10.255.72.20 pool member operation. SUCCESS

members csv

boston-node_1:1723 10.55.2.20:80

Hope this helps

0
Comments on this Answer
Comment made 01-Mar-2017 by theo reber 1

THX, it works.

0