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
- John_Gruber_432Historic F5 AccountCheck out Joe's response:
- Damain_Flynn_19
Nimbostratus
John,
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