Forum Discussion
alex_der_101956
Nimbostratus
Dec 09, 2004Method to disable/enable a server?
Hi,
When looking at the LocalLBNode perl example, I was wondering if there is a method to disable/enable a server, or do you have to loop through all the nodes on a server?
Thanks
- Loc_Pham_101863Historic F5 AccountYes, there are methods to enable/disable individual pool members and node addresses. For example, in v9.x:
- By "Server" do you mean "Virtual Server" or a single Node Address. There are several ways to disable services.
void ITCMLocalLB::Node::set_state( in IPPortDefinition[] node_defs, in EnabledState state );
void ITCMLocalLB::Node::set_node_address_states( in String[] node_ips, in EnabledState[] states );
void ITCMLocalLB::VirtualServer::set_state( in IPPortDefinition[] virtual_servers, in EnabledState state );
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