Forum Discussion

The-messenger's avatar
The-messenger
Icon for Cirrostratus rankCirrostratus
Jan 29, 2019

Track/Log Pool section for a specific client IP

LTM 12.1.4 How can I track selection/usage from a specific client IP to a VIP/Pool selection?

 

Trying to help determine what and application is failing through LTM.

 

1 Reply

  • Hi,

    You could use this irule.

    when CLIENT_ACCEPTED {
      log local0. "client: [IP::client_addr]:[TCP::client_port] server:"
    }
    when LB_SELECTED {
      log local0. "client: [IP::client_addr]:[TCP::client_port] server: [LB::server addr]:      [LB::server port]"
      if { [IP::client_addr] == [LB::server addr] } {
    log local0. "client: [IP::client_addr]:[TCP::client_port] LB::reselect"
        LB::reselect
      }
    

    Cheers,

    Kees