tarsier_90410
Aug 25, 2009Nimbostratus
way 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?
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"
}