Forum Discussion

Vishal_96693's avatar
Vishal_96693
Icon for Nimbostratus rankNimbostratus
May 07, 2013

Pool member current connection irule

Hi,

 

I am quite new to f5 irule so i was just wondering if i can get some help with irule. Basically i want to create irule to log persistance cookie traffic for troubleshooting. So far i have managed to get following. I was wondering if there is any way that i can get the pool members current connection table and incorporate with following irule.

 

 

Thanks in advance

 

Vishal

 

 

 

when HTTP_REQUEST {

 

set Virtual [virtual name]

 

set Pool [LB::server pool]

 

set current_member [LB::server addr]

 

if { [HTTP::cookie value "mf5"] ne "" } {

 

persist uie [HTTP::cookie value "mf5"]

 

log local0. "Request from Client: [IP::remote_addr]:[TCP::remote_port], contains persistence cookie for VIP: $Virtual; Pool: $Pool; Current member: $current_member; "

 

}

 

else {

 

log local0. "Request from Client: [IP::remote_addr]:[TCP::remote_port], does not contain persistence cookie for VIP: $Virtual; Pool: $Pool; Current member: $current_member; "

 

}

 

}

 

No RepliesBe the first to reply