Forum Discussion

DocSmooTH_23746's avatar
DocSmooTH_23746
Icon for Nimbostratus rankNimbostratus
Jul 17, 2007

LB::server name giving full tcl list, not the name

I have the following iRule tagged to a dev Siebel environment:

 

when HTTP_RESPONSE {
    if { [regsub -all "Siebel" [HTTP::payload] "[LB::server addr] - Siebel" newdata] } {
        HTTP::payload replace 0 [HTTP::payload length] $newdata  
    }
}

 

That works properly, and the browser title bar changes from "Siebel" to "1.1.1.1 Siebel". However, if I use the same code and change:

 

[LB::server addr]
to
[LB::server name]

 

I now get the browser title bar saying "pool_siebel_dev 1.1.1.1 80", which is the correct response if I were using [LB::server] (if I do, then I get what I'm expecting).

 

 

I get 0 failures or aborts in the irule, it just doesn't like the "name".

 

All of my nodes have names.

 

All of my nodes were added as IP addresses, not DNS names.

 

Reverse DNS is fails with dig, works with nslookup/tracepath - I don't know why this is yet.

 

I've tried all of the above variations to LB::server.

 

the HTTP profile rechunks all data, but chunking and HTTP/1.1 is required for the application, so forcing it off as many rules do won't work for me.

 

 

If anyone has any ideas, I'd love to hear them. Also, devcentral fails the "LB::server" search as invalid syntax - makes hunting for these problems *very* difficult.

 

 

Rob

 

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Looks like you may have encountered a product defect regarding the LB::server "name" parameter. Please open a case with F5 Support with these details.

     

     

    Regarding the search, we are working on improving that, but in the meantime, here are a couple of tips when searching the site for iRules command /event/ function details:

     

     

    1) The default search @ the top of the page searches through all the dynamic content (tutorials, media, blogs, etc) and to find references to commands with imbedded "::" you'll need to enclose your search string in double quotes (i.e. "LB::server")

     

     

    2) You will find more and better examples searching from inside the wiki instead, using the search dialog in the right hand Control Panel menu. There you don't have to enclose your search terms with :: in quotes. This search will return both wiki doc pages and codeshare samples matching your search term.

     

     

    3) Try searching the forum for examples of the same command being used. There's a search link @ the top of most forum pages, and again, no double quotes needed here.

     

     

    HTH

     

    /deb