Forum Discussion
dan_19334
Nimbostratus
Jan 19, 2010ECV-Determine Pool Member Status
Hi, is there a good way to determine nodes that are available and not disabled from the command line? I am writing a custom monitor script and it seems I have to check two places to ensure that a Node is UP. Both a 'b pool show' and a 'tmsh show ltm pool members' requires me to parse multiple lines looking for both 'Availability' and 'State' to make sure the node is actually useable.
Status (from tmsh show pool)
Availability : available
State : enabled
Ideally I just want to know if our pool is at quorum, where say at least 4 out of 10 members are up (and not disabled). Sounds easy, but to me to do this requires a lot of parsing of the bigip tools output.
Thanks,
-Dan
- hoolio
Cirrostratus
Hi Dan, - dan_19334
Nimbostratus
Aaron, - hoolio
Cirrostratus
Interesting. That dummy pool member idea was what I was going to suggest along with priority group activation. But thinking about it again, I'm not sure it would work easily as the higher priority pool members would still be selected even with the lower priority group was used. - dan_19334
Nimbostratus
Very interesting, indeed. We are currently checking for quorum in the iRule with active_members across all of the pools but as we increase user and ajax calls >5K we see a noticeable increase in LTM CPU from all of this checking. We are trying to decouple the monitoring from the user traffic so as not to increase monitoring when user traffic increases, and to have finite resources dedicated to monitoring. - JRahm
Admin
So you're looking for a particular object's (or pool of objects) enabled state and available state, in one output? This is a good candidate for a tmsh script. I don't have time today, but maybe tomorrow I can crank this out. please post back to let me know if this is what you are describing or if you had something else in mind. - dan_19334
Nimbostratus
Yes, looking to determine number of usable nodes in a Pool, essentially how many nodes in a pool are UP and not disabled. This is how I am currently doing it, and it begs for a better method: - Mark_Crosland_2Historic F5 AccountIn 10.1 you can do something like the script below. You still need to look at a couple values, but you can be more specific about what you are looking for and are not dependent on command output formatting.
- dan_19334
Nimbostratus
The tmsh::get_field_value does look to make this a lot easier. Thanks for info and script...just need to get to 10.1 now.
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