Forum Discussion
Arie
Altostratus
Aug 28, 2006iRule to use specific member (or node)?
I am trying to put together an iRule that will use a specific node (or member) when the URL contains a specific string. However, I am unable to find much on how to pick a node (or member).
2 Replies
- Deb_Allen_18Historic F5 AccountThe "pool" command may be used to specify a pool member:
You might want to use the "LB::status" command (avail as of v9.2) to validate the availablity of the node first:pool myPool member 192.168.1.1 80
poolLB::status pool myPool member 192.168.1.1 80
http://devcentral.f5.com/wiki/default.aspx/iRules/pool.htmlClick here
LB::status
http://devcentral.f5.com/wiki/default.aspx/iRules/LB__status.htmlClick here
HTH
/deb - Jason_Roppolo_3Historic F5 AccountYou may want to try this as well:
It is from this SOL article
https://tech.f5.com/home/bigipgtm/manuals/bigipgtm9_2_2/BIG-IP_9_2_2GTM_Guide-16-1.html
As an alternative to the pool command, you can also write an iRule that directs traffic to a specific server. To do this, you use the host command. Figure 15.4 shows an example of this command.
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/foo/" } {
host 10.0.0.20 80
Thanks, Jason.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects