Forum Discussion
huli_huli_37457
Nimbostratus
Feb 04, 2012Table timeout/lifetime Not Reflected in -count
Howdy! I am attempting to build an IRULE that functions as a gate keeper, limiting the number of active sessions at any given point in time. I am using a sub-table to manage ea...
nitass
Employee
Feb 05, 2012My assumption is that table -count considers all entries irrespective of timeout/lifetime i do not think so.
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
table set -subtable test "1.1.1.1" "11111" 1 indef
table set -subtable test "2.2.2.2" "22222" indef indef
table set -subtable test "3.3.3.3" "33333" indef indef
log local0. "\[table key -subtable test\]: [table key -subtable test]"
log local0. "\[table key -subtable test -count\]: [table key -subtable test -count]"
after 2000
log local0. "after 2000 ms"
log local0. "\[table key -subtable test\]: [table key -subtable test]"
log local0. "\[table key -subtable test -count\]: [table key -subtable test -count]"
}
}
[root@ve1023:Active] config cat /var/log/ltm
Feb 5 06:31:23 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: [table key -subtable test]: 2.2.2.2 3.3.3.3 1.1.1.1
Feb 5 06:31:23 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: [table key -subtable test -count]: 3
Feb 5 06:31:25 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: after 2000 ms
Feb 5 06:31:25 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: [table key -subtable test]: 2.2.2.2 3.3.3.3
Feb 5 06:31:25 local/tmm info tmm[4369]: Rule myrule HTTP_REQUEST: [table key -subtable test -count]: 2
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