Forum Discussion

Craig_Jackson_1's avatar
Craig_Jackson_1
Icon for Nimbostratus rankNimbostratus
Oct 04, 2005

LB 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

  • drteeth_127330's avatar
    drteeth_127330
    Historic F5 Account
    The 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.