Forum Discussion
jajamax_127538
Nimbostratus
Nov 20, 2003Need a script
Let me preface by saying I'm no developer. What I need is a way to bring the a node off line prior to running a batch job that stops the service on that node. Is there a script that can pull a node ...
Nov 21, 2003
There are examples included in the SDK that do just this. Look for the LocalLBNode sample in each of the supported languages (Perl, Java, VB, C). When you mention scripting this, perl is probably your best option.
The specific methods you would be interested in are:
void ITCMLocalLB::Node::set_state(
in IPPortDefinition[] node_defs,
in EnabledState state
);
void ITCMLocalLB::Node::set_availability(
in IPPortDefinition[] node_defs,
in AvailabilityState state
);
void ITCMLocalLB::Node::get_statistics(
in IPPortDefinition node_def,
out NodeStatistics stats
);
The set_state() method will cause a forced up or down of the node while the set_availability() method is used for gracefully "draining" connections to the node by not allowing new connections to be pass on. If using this method you should watch the connections on that node with the get_statistics() method and wait until the total connections reach zero, then disable the node with the state of STATE_DISABLED.
-Joe
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