Forum Discussion
GTM iRule return GTM pool status
Hey all,
Probably a quick one here. I'm trying to write an iRule that will return the status of a GTM pool when DNS_REQUEST event is triggered. This is what I have in the iRule editor which accepts it.
when DNS_REQUEST {
if { ([LB::status pool test_gtm_pool] eq "up") } {
log local0. "Pool Available!
}
}
However in the /var/log/gtm I receive this
TCL error: Rule /Common/irule_test - wrong args: should be "LB::status [pool member < | > ] or [vs < | > ] " while executing "LB::status pool test_gtm_pool"It's a bit different with GTM (at least as far as I am aware) but here is something I would look at:
https://devcentral.f5.com/wiki/iRules.active_members.ashx
when DNS_REQUEST { if { [active_members http_pool] >= 1 } { log local0. "Pool Available!" } }
3 Replies
- Max_Q_factor
Cirrocumulus
It's a bit different with GTM (at least as far as I am aware) but here is something I would look at:
https://devcentral.f5.com/wiki/iRules.active_members.ashx
when DNS_REQUEST { if { [active_members http_pool] >= 1 } { log local0. "Pool Available!" } }- Jim_Araujo_1061
Nimbostratus
Thanks Brian. Is there a way to pull the active_members from a specfic pool by supplying it's name? - Jim_Araujo_1061
Nimbostratus
Would have helped it I read the link you posted. LOL. THanks!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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