Forum Discussion

Richard_Fuhrman's avatar
Richard_Fuhrman
Icon for Nimbostratus rankNimbostratus
Feb 23, 2009

enable/disable nodes using C#

First off we're switching from Windows NLB to using BigIP - so I'm trying to duplicate the functionality we had with nlb's "drainstop" command. I want to gracefully bring down a node for maintenance - and I want to do this using C.

 

 

I tried the LocalLBPoolMember.set_session_enabled_state() but it doesn't seem to stop traffic as expected. If I'm in an application on node1, set the node to disabled (set_session_enabled_state(disabled), exit the application by closing the browser, start application again I end backup on node1! So there must be more to do this...but what???

 

 

I saw in a perl script that you are also setting a "Monitor Status" - although I have yet to see a C example - and I'm not good at reading perl - so what's the right answer??? What's the C code to emulate nlb's drainstop command???

 

1 Reply

  • I think this tech tip I wrote is just what you are looking for:

     

     

    http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=254

     

    Click here

     

     

     

    It's written in PowerShell but converting the logic to C should be trivial.

     

     

    -Joe