Forum Discussion
wayney_128269
Nimbostratus
Aug 18, 2005example of a call to PoolMember.set_monitor_state
I cannot find any sample C code in the SDK that does a call to PoolMember.set_monitor_state. Can someone send me some sample c code that makes this call?
thanks
wayne
13 Replies
- wayney_128269
Nimbostratus
Has anyone at F5 had a chance to look into my request for sample c code that calls PoolMember.set_monitor_state? - wayney_128269
Nimbostratus
Hello, Anybody at F5 moniting these forums? I need some assistance - wayney_128269
Nimbostratus
- How about PoolMember::get_monitor_state()...
- Loc_Pham_101863Historic F5 AccountActually, use LocalLB::PoolMember::get_monitor_status
- wayney_128269
Nimbostratus
ok which one should it be? PoolMember.set_monitor_state or PoolMember::get_monitor_status and what is the difference? - Trust Loc, he wrote the code...
- Loc_Pham_101863Historic F5 AccountThere's no get_monitor_state, just get_monitor_status.
- wayney_128269
Nimbostratus
- Wayne,
String [] pool_names = new String[] { "pool101","pool100" }; PoolMember.LocalLBPoolMemberMemberMonitorState[][] monitor_states = new PoolMember.LocalLBPoolMemberMemberMonitorState[2][]; // For pool pool101 monitor_states[0] = new PoolMember.LocalLBPoolMemberMemberMonitorState[1]; monitor_states[0][0] = new PoolMember.LocalLBPoolMemberMemberMonitorState(); monitor_states[0][0].member = new PoolMember.CommonIPPortDefinition(); monitor_states[0][0].member.address = "10.10.10.12"; monitor_states[0][0].member.port = 443; monitor_states[0][0].monitor_state = PoolMember.CommonEnabledState.STATE_DISABLED; // For pool pool100 monitor_states[1] = new PoolMember.LocalLBPoolMemberMemberMonitorState[1]; monitor_states[1][0] = new PoolMember.LocalLBPoolMemberMemberMonitorState(); monitor_states[1][0].member = new PoolMember.CommonIPPortDefinition(); monitor_states[1][0].member.address = "10.10.10.12"; monitor_states[1][0].member.port = 80; monitor_states[1][0].monitor_state = PoolMember.CommonEnabledState.STATE_DISABLED; PoolMember2.set_monitor_state(pool_names, monitor_states);
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