Forum Discussion
Danims_19205
Nimbostratus
Nov 28, 2012how to create a Statistics Profile
Hello everyone:
I need see the total connections for a specific network in a vserver. I´m reading about cretion irule but i need some help! con you help me? I have one f5 ltm 6900 v10.2.4
T...
nitass
Employee
Nov 29, 2012e.g.
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
mystats {}
tcp {}
}
}
[root@ve10:Active] config b profile mystats list
profile stats mystats {
defaults from stats
field1 net172
field2 net192
field3 others
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 172.28.19.0/16] } {
STATS::incr mystats net172 1
} elseif { [IP::addr [IP::client_addr] equals 192.168.206.0/24] } {
STATS::incr mystats net192 1
} else {
STATS::incr mystats others 1
}
}
}
[root@ve10:Active] config b profile mystats
PROFILE STATS mystats parent stats
| net172: 100
| net192: 1
| others: 0
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects