Forum Discussion
Craig_Jackson_1
Nimbostratus
Oct 04, 2005LB commands documentation
I'm looking for documentation on the LB commands.
I'm trying to persist on a session id found in a response, and it needs to be qualified by which pool member issued it. I've seen references to LB:: commands in various iRule scraps, but I can't find any documentation on them.
What I need is to find some command that will return a "hostname" for the selected load-balance pool member. Something like "server1", "server2", etc. Then I could rewrite the response to add that qualifier, and rewrite subsequent requests to remove it.
I realize I could do this by modding the application, but I'd like to see if I can use the power of the F5 to avoid that. (I also I realize that I could get around the problem by assigning disjoint connection-id ranges to different members, but that seems to be only a short-term solution.)
Craig Jackson
1 Reply
Sort By
- drteeth_127330Historic F5 AccountThe command [LB::server addr] will return the address of the selected pool member. However, there's no good way to get the host name. I recommend using a string class to map the address to the name. The downside, of course, is that you'll have to manage the list.
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