Forum Discussion
Jayaram_S_96796
Nimbostratus
Jun 30, 2006How to force Down and bleed Connection for a node
Hi
I need to bleed the connection and forced down in v9.0
in v4.5 for Forced Down we are using
LocalLBNode.set_state(nodeList,0);
LocalLBNode.set_availability(nodeList,4);
and For bleeding
LocalLBNode.set_availability(nodeList,setVal);
in v9.0
Can i use this code (need to equivalent for Bleed and Forced down)
NodeAddress.CommonEnabledState[] oState;
oState=oNodeConfig.get_session_enabled_state(Address);
if(oState[0].ToString()=="STATE_ENABLED")
oState[0]=NodeAddress.CommonEnabledState.STATE_DISABLED;
else
oState[0]= NodeAddress.CommonEnabledState.STATE_ENABLED;
NodeConfig.set_session_enabled_state(sAdd,oState);
NodeConfig.set_monitor_state(sAdd,oState);
- dchristilaw_178
Nimbostratus
This information would be great to have as I am in the same boat. Using version reported on configuration page:BIG-IP 11.5.1 Build 3.0.131 Hotfix HF3
Thanks
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