Forum Discussion
Krishna_251070
Nimbostratus
Oct 16, 2017iControl 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":[]}
- Kevin_Davies
Nacreous
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.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects