Forum Discussion

pchandhok_10964's avatar
pchandhok_10964
Icon for Nimbostratus rankNimbostratus
Jun 26, 2008

iRule to log LB::server is not working

Has anyone come across this?

 

 

I have a simple script to list all the servers and it returns nothing.

 

 

 

when CLIENT_ACCEPTED {

 

log "Servers are [LB::server]"

 

}

 

 

Possible bug? The client does connect fine though.
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    The LB::server command will only return data once there is an actual load balancing decision made. Try using it in or after the LB_SELECTED event.

     

     

    Colin
  • Thanks. That did the trick. But what if I do want to check when a client is connected and not when a lb is selected? Will the lb::server command simply not work?