User Tools

Site Tools


.gz · Last modified: by admin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bigip-f5:irules:testirule [2026/02/13 16:25] – created adminbigip-f5:irules:testirule [2026/02/13 16:27] (current) admin
Line 1: Line 1:
-<codeprism lang=tcl>+asdf 
 + 
 +<codeprism lang="tcl">
 when CLIENT_ACCEPTED { when CLIENT_ACCEPTED {
     set syslog_pool1 [HSL::open -proto UDP -pool pool_SyslogServer001]      set syslog_pool1 [HSL::open -proto UDP -pool pool_SyslogServer001] 
Line 8: Line 10:
   HSL::send $syslog_pool2 [UDP::payload]    HSL::send $syslog_pool2 [UDP::payload] 
  
 +}
 +
 +
 +when CLIENT_ACCEPTED {
 +
 +  # grab UDP payload
 +  set data [UDP::payload]
 +  
 +  # create connection objects to both servers
 +  set conn_id1 [connect -protocol UDP -myaddr 1.1.1.1 -timeout 100 -idle 30 10.10.10.1:514]
 +  set conn_id2 [connect -protocol UDP -myaddr 1.1.1.1 -timeout 100 -idle 30 10.10.10.2:514]
 +  
 +  # send sideband request to server1
 +  send -timeout 1000 $conn_id1 $data
 +  close $conn_id1
 +  # send sideband request to server1
 +  send -timeout 1000 $conn_id2 $data
 +  close $conn_id2
 } }
  
 </codeprism>  </codeprism> 
.gz · Last modified: by admin