Forum Discussion
goatman64_12745
Nimbostratus
Jun 21, 2006icontrol equivalent call for 'b node down'
What is the equivalent call in iControl v9.0 to disable a node address? I'm using LocalLB::NodeAddress::set_session_enabled_state and setting disabled. In the BigIP UI this sets a state "Only persis...
May 16, 2007
For the monitor_state, you'll want to use the get_monitor_status. You are right that this has 9 possible status values. Basically go with the UP value for a good state and the others either indicate a bad state or that the BIG-IP is in the process of checking it with a monitor.
For the session_enabled_state, use the get_session_enabled_status method. The get_session_status method has additional information regarding the reason for the new sessions attribute being off.
And, yes these methods work for PoolMembers as well.
As for your last question, disabling a node for maintenance, to get the number of current connections, you are going to have to query the staistics with the get_statisics() method and look for the "STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS" statistic and retry querying the statistics until this value is zero.
Let me know if this didn't clarify things for you.
-Joe
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