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:

when DNS_REQUEST {
    if { [active_members http_pool] >= 1 } {
        log local0. "Pool Available!"
    }
}

Thanks Brian. Is there a way to pull the active_members from a specfic pool by supplying it’s name?

Would have helped it I read the link you posted. LOL. THanks!