Forum Discussion

Jim_Araujo_1061's avatar
Jim_Araujo_1061
Icon for Nimbostratus rankNimbostratus
Feb 27, 2015
Solved

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"

3 Replies