Forum Discussion

Kumar_Annamalai's avatar
Kumar_Annamalai
Icon for Nimbostratus rankNimbostratus
Jun 25, 2013

Irule to check the given IP exist in any of the pools, Nodes & to return the status of this IP

Hi All,

 

I'm a newbie and request your kind help.

 

I have a requirement that i need to read the cookie value (with the IP address being set ) and then to check whether this IP exist in any of the Pool list and Nodes .

 

If the IP exist, Need to check the status of the IP (whether it is available / offline / online ) and then to redirect to this IP.

 

Can anyone suggest me how to check the status using iRule.

 

 

Tasks that i tried:

 

I'm able to get the cookie value and able to redirect to the specific destination.

 

Also was able to get the member status using iControl but not using the iRule. I'm not sure how to call the iControl inside the IRule File.

 

Thanking you in advance for your kind reply.

 

Thanks

 

Kumar

 

 

2 Replies

  • Can anyone suggest me how to check the status using iRule.you mean node or pool member status, don't you? if so, have you tried LB::status?

     

     

    LB::status wiki

     

    https://devcentral.f5.com/wiki/irules.LB__status.ashx
  • I can get the pool name only at the runtime and i can't pass that initially itself. where as for the node i can pass directly the node IP.