Forum Discussion
Jon_Steel_3910
Nimbostratus
Sep 23, 2009How to Force Offline DisableNode using iControl ?
Hi
Currently, I'm using the Disable-F5.LTMNodeAddress -node {IP} to disable access to a device. However, this marks the node as "disabled" (allowing persistent connections to continue) - but I want to "Force Offline" (only allowing active connections).
How do I do this through the powershell scripts ?
- The Disable-F5.LTMNodeAddress Cmdlet calls the iControl LocalLBNodeAddress.set_session_enabled_state method under the seams with the iControl.CommonEnabledState.STATE_DISABLED flag.
Enabled (All traffic allowed):
http://devcentral.f5.com/wiki/default.aspx/iControl/PowerShell.html
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=254
http://devcentral.f5.com/wiki/default.aspx/iControl/PsServerControl.html
- Jon_Steel_3910
Nimbostratus
Ignore what I just posted (I'm editing) - Sweet, glad I could help. Please don't hesitate to ask if anything else comes up. As long as the requests aren't too complicated, I'm glad to mock something up and add it as a CodeShare entry.
- Justin_111680
Nimbostratus
Is this applicable to pyControl? I added set_monitor_status to my disable_member function but it still shows up as 'Disabled (Only persistent or active connections allowed)' when i verify in UI. I am still using pyControl v1. I tried updating to pyControl v2 but just attempting to connect to LB threw a stack trace. - JRahm
Admin
pycontrol is just another way to access the API. As long as you use the methods Joe describes above properly, it will work just as well. the constructor in pycontrol changed slightly from v1 -> v2 in that you need to specify fromurl = True (or provide a local directory where your wsdl files are) and instead of wsdl_files its is wsdls. Check out the constructor video Matt put together (Click here)
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