Forum Discussion
Omachonu_Ogali1
Dec 20, 2006Historic F5 Account
Can't disable a pool member via PHP/SOAP+WSDL
I'm trying to disable a pool member, but not having any luck. I've called both the set_monitor_state() and set_session_enabled_state() functions, but the member is never disabled.
Is there anything additional I should be doing?
case 'disable':
if ($obj->enabled_status == ENABLED_STATUS_DISABLED) {
printf("%s:%d is already disabled in pool %s\n", $member->address, $member->port, $current_pool);
} else {
printf("disabling %s:%d in pool %s\n", $member->address, $member->port, $current_pool);
$pm_ctrl->set_monitor_state(array($current_pool), array(member => $member, monitor_state => STATE_DISABLED));
$pm_ctrl->set_session_enabled_state(array($current_pool), array(member => $member, session_state => STATE_DISABLED));
}
break;