Forum Discussion
tarsier_90410
Nimbostratus
Aug 25, 2009way to list pools?
I am trying to find a way for an irule (9.x LTM) to query for a list of all pools on the system, but so far have not found a way to do so. Is this possible?
tarsier_90410
Nimbostratus
Aug 25, 2009Thanks for the feedback. We do not have iControl, and I am trying to create a read-only dashboard for our app developers to check to see if various pools are up or down. I would prefer to not manually edit the list each time I setup/tear down a pool.
when HTTP_REQUEST {
set POOLS {
"http_pool"
"https_pool"
}
set response "BIGIP Pool Status - [clock format [clock seconds]]"
foreach { curpool } $POOLS {
pool $curpool
if { [active_members [LB::server pool] ] < 1 } {
set response "$response DOWN - $curpool
"
} else {
set response "$response UP - $curpool
"
}
}
set response "$response "
HTTP::respond 200 content $response "Content-Type" "text/html"
}
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
