Forum Discussion

Jayaram_S_96796's avatar
Jayaram_S_96796
Icon for Nimbostratus rankNimbostratus
Jun 30, 2006

How 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);
No RepliesBe the first to reply