Forum Discussion
Brian_Moore_603
Nimbostratus
Aug 29, 2007bringing multiple sites in and out of service
I need a way for a group of users in my network to force a group of servers offline in the F5 with a script? I am needing this so that we can roll out code changes to those servers and then put them ...
hoolio
Cirrostratus
Aug 29, 2007A quick and dirty solution would be to use bigpipe commands via the command line to disable the nodes. You can check the 'b pool help' or 'b node help' pages for details.
The syntax to disable a single pool member is:
b pool my_http_pool member 1.2.3.4:80 session disable
You could use a shell script to read in a list of nodes and run the command for them.
To disable nodes, you can use a list:
b node 1.2.3.4 1.2.3.5 session disable
To save the changes from memory to file, run 'b save'.
An elegant solution would be to use iControl to programmatically disable the nodes. You can check the iControl page for more info:
http://devcentral.f5.com/wiki/Default.aspx/iControl.HomePage
Click here
Aaron
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