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?
Rupa_34586
Nimbostratus
Jan 12, 2010my .class looks like this UP\ DOWN\
"p_freedom_ditservicecentre.adpfreedom.com/10.15.81.94:80",
"p_impact1/10.5.131.64:80",
"p_impact1/10.5.131.72:80",
"p_impact2/10.1.177.220:80",
I removed some of the pools from the .class file.But there are still in F5 device, I just editd the .class file.
And my irule is
foreach { selectedpool } {class get pool_member_status_list} {
log local0. " $selectedpool "
scan [split [getfield $selectedpool " " 1] "/"] %s%s poolname addrport
scan [split $addrport ":"] %s%d addr port
switch -glob [LB::status pool $poolname member $addr $port] {
"up" {
append response "
[string tolower $poolname]$addr$port"
}
"down" {
append response "
[string tolower $poolname]$addr$port"
}
In the logs for log local0. " $selectedpool "
i see logs as
Jan 12 07:08:13 local/tmm1 info tmm1[7773]: Rule poolstatus : p_freedom.ditportal.adpfreedom.com/10.15.81.90:http {}
Jan 12 07:08:13 local/tmm1 info tmm1[7773]: Rule poolstatus : p_freedom_ditess.adpfreedom.com/10.15.81.93:http {}
Jan 12 07:08:13 local/tmm1 info tmm1[7773]: Rule poolstatus : p_freedom_ditmain.adpfreedom.com/10.15.81.92:http {}
Jan 12 07:08:13 local/tmm1 info tmm1[7773]: Rule poolstatus : p_freedom_ditmain2.adpfreedom.com/10.15.81.92:http {}
Jan 12 07:08:13 local/tmm1 info tmm1[7773]: Rule poolstatus : p_freedom_ditservicecentre.adpfreedom.com/10.15.81.94:http {}
Jan 12 07:08:13 local/tmm1 info tmm1[7773]: Rule poolstatus : p_impact1/10.5.131.64:http {}
Jan 12 07:08:13 local/tmm1 info tmm1[7773]: Rule poolstatus : p_impact1/10.5.131.72:http {}
Jan 12 07:08:13 local/tmm1 info tmm1[7773]: Rule poolstatus : p_impact2/10.1.177.220:http {}
Jan 12 07:08:13 local/tmm1 info tmm1[7773]: Rule poolstatus : p_impact2/10.5.131.73:http {}
And the list follows, prints all the pools in F5 device.
I do not understand eventhough we have edited the .class file.why is looking for all the pools. I hope it should look for only the pools in .class file.
From where is it looking the pools?
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
