Forum Discussion
jjkast_230900
Nimbostratus
Nov 17, 2015Disable pool member using iRule
Hey Everyone,
I'm trying to disable a pool member using an HTTP request, so that my team and I don't need to be awake and online for server maintenance. Below are both of the rules I've tried to us...
Brad_Parker
Cirrus
Nov 17, 2015Have you considered using a monitor with a receive disable string or just using the REST api to take the pool member offline?
- Brad_ParkerNov 17, 2015
Cirrus
Here's a good explanation of a receive disable string. https://support.f5.com/kb/en-us/solutions/public/12000/800/sol12818.html - jjkast_230900Nov 17, 2015
Nimbostratus
I'm open to all options. I'm just trying to take a little workload off of my team. - jjkast_230900Nov 17, 2015
Nimbostratus
That might work. Do you have an example of using the REST api to do it too? - Brad_ParkerNov 17, 2015
Cirrus
The API is a bit more involved of a solution, but it is a frame work to edit just about everything on the BigIP via a REST API. https://devcentral.f5.com/wiki/iControlREST.HomePage.ashx This would be an example to disable a pool member. curl -sk -u 'admin:admin' -H "Content-Type: application/json" -X PUT https://192.168.1.246/mgmt/tm/ltm/pool/~Common~Pool1/members/~Common~10.0.0.1:80 '{"session": "user-disabled"}' - Kevin_Davies_40Nov 17, 2015
Nacreous
Brad thats nice code. I'll use that :-)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
