Forum Discussion

Khamari_2736's avatar
Khamari_2736
Icon for Nimbostratus rankNimbostratus
Nov 29, 2011

GTM iRule Syntax, how to disable/enable a GTM pool member (VS) ?

Hello,

 

 

Any one knows the sysntx on how to enable/disable a GTM pool member using an iRule?

 

 

I'm trying to enable pool members that are in the manual resume (Balck) status using an iRule.

 

 

Kind regrads

 

 

 

 

  • George_Watkins_'s avatar
    George_Watkins_
    Historic F5 Account
    Hi Khamari,

     

     

    A pool member's state cannot be manipulated from within an iRule. You can check the number of members available or get a list, but you can't flip the switch. You could do this with iControl though. The method you'd want to use is GlobalLB::PoolMember.set_enabled_state. Hope that helps,

     

     

    George
  • Thanks George, you reply did put me in the right direction. I end up using neither irules or icontrol but instead a perl script. So I could take advantage of tmsh command that enable all pool members of a pool.

     

     

    http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/2158870/showtab/groupforums/Default.aspx