Forum Discussion

Krishna_251070's avatar
Krishna_251070
Icon for Nimbostratus rankNimbostratus
Oct 16, 2017

iControl Question

Hi Experts,

Newbie to the world of iControl!

I used this command to disable a single node in the pool.

user@server[~]$ curl -sk -u admin
https://x.x.x.x/mgmt/tm/ltm/pool/Test/members/~Common~NODE:PORT/ -H "Content-Type: application/json" -X PUT -d '{"state": "user-down", "session": "user-disabled"}'

Is there anyway I can disable all the nodes in the pool using a single line command?

Tried this; but didn't work!

 

user@server[~]$ curl  -sk -u  admin  https://x.x.x.x/mgmt/tm/ltm/pool/Test/members/*/  -H "Content-Type: application/json" -X PUT -d '{"state": "user-down", "session": "user-disabled"}'

{"code":400,"message":"Invalid URI","errorStack":[]}

 

1 Reply

  • Their is but you can't do it through curl. You have to download the pool, update the pool member states, then push that back to the F5 through iControl Rest. Best done using Python.