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
wayney_128269
Nimbostratus
Sep 26, 2005
ok, so I'm getting an error from out BIGIP box when I try to manage DIPs from 2 different pools. It cannot seem to find one of the pools. If I try to manage multiple DIPs within the *same* pool, everything works fine. Its just when I try to manage DIPs from multiple pools that I get this error:
Exception caught in LocalLB::PoolMember::set_monitor_state()
Exception: Common::OperationFailed
primary_error_code : 16908342 (0x01020036)
secondary_error_code : 0
error_string : 01020036:3: The requested pool member (pool101 10
.10.10.12 http) was not found. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at PoolMember.LocalLBPoolMember.set_monitor_state(String[] pool_names, LocalL
BPoolMemberMemberMonitorState[][] monitor_states)
at Pool.Class1.setPoolInfo(String[] pool_name)
Here is the code:
PoolMember.LocalLBPoolMemberMemberMonitorState[][] monitor_states = new PoolMember.LocalLBPoolMemberMemberMonitorState[1][];
monitor_states[0] = new PoolMember.LocalLBPoolMemberMemberMonitorState[2];
String [] pool_names = new String[] { "pool101","pool100" };
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;
//
monitor_states[0][1] = new PoolMember.LocalLBPoolMemberMemberMonitorState();
monitor_states[0][1].member = new PoolMember.CommonIPPortDefinition();
monitor_states[0][1].member.address = "10.10.10.12";
monitor_states[0][1].member.port = 80;
monitor_states[0][1].monitor_state = PoolMember.CommonEnabledState.STATE_DISABLED;
PoolMember2.set_monitor_state(pool_names, monitor_states);
Exception caught in LocalLB::PoolMember::set_monitor_state()
Exception: Common::OperationFailed
primary_error_code : 16908342 (0x01020036)
secondary_error_code : 0
error_string : 01020036:3: The requested pool member (pool101 10
.10.10.12 http) was not found. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at PoolMember.LocalLBPoolMember.set_monitor_state(String[] pool_names, LocalL
BPoolMemberMemberMonitorState[][] monitor_states)
at Pool.Class1.setPoolInfo(String[] pool_name)
thanks
wayne
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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