Forum Discussion
Damain_Flynn_19
Nimbostratus
Jul 13, 2011iControl Force Member offline
The following sample code works well at disabling a pool member, but the member goes into the normal Drain type mode, keeping exisiting connectins, blocking new; I need to code the option to Force Offline
// Disable the Session for the Member
LocalLBPoolMemberMemberSessionState[][] session_states = new LocalLBPoolMemberMemberSessionState[1][];
session_states[0] = new LocalLBPoolMemberMemberSessionState[1]; session_states[0][0] = new LocalLBPoolMemberMemberSessionState();
session_states[0][0].member = new CommonIPPortDefinition();
session_states[0][0].member = memberIpPort; session_states[0][0].session_state = CommonEnabledState.STATE_DISABLED;
F5Connection.LocalLBPoolMember.set_session_enabled_state(new string[] { poolName }, session_states);
Looking at the PowerShell implemention this looks possible, i just dont know which method to use?
Set-F5.LTMPoolMemberState : You must specify a State value of "Enabled", "Disabled", or "Offline"
any ideas?
thanks guys
Damian
2 Replies
- John_Gruber_432Historic F5 AccountCheck out Joe's response:
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/51/aft/84952/showtab/groupforums/Default.aspx - Damain_Flynn_19
Nimbostratus
John,
Thats awsome!
thank you so much.
Ochestrator IP for F5 will soon be ready for beta!
cheers
Damian
www.damianflynn.com
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