Forum Discussion
nitass
Mar 20, 2013Employee
and this is on cmp platform.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show sys tmm-info |grep -i sys::tmm
Sys::TMM: 0.0
Sys::TMM: 0.1
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.20.16:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
myrule
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vlans-disabled
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when RULE_INIT {
set static::i 0
}
when CLIENT_ACCEPTED {
if { $static::i == 0 } {
set loghost loghostp1
set static::i 1
} else {
set loghost loghostp2
set static::i 0
}
set hsl [HSL::open -proto TCP -pool $loghost]
}
when HTTP_REQUEST {
set host [HTTP::host]
set uri [HTTP::uri]
}
when HTTP_RESPONSE {
HSL::send $hsl "<190> [IP::client_addr]:[TCP::client_port] $host $uri\n"
}
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool loghostp1
ltm pool loghostp1 {
members {
200.200.200.101:514 {
address 200.200.200.101
}
}
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool loghostp2
ltm pool loghostp2 {
members {
200.200.200.111:514 {
address 200.200.200.111
}
}
}
pool stats
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show ltm pool loghostp1|grep -i total\ requests
Total Requests : 250
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show ltm pool loghostp2|grep -i total\ requests
Total Requests : 250