Forum Discussion
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
- nitass
Employee
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 - Kumar_Annamalai
Nimbostratus
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.
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