Forum Discussion
Craig_Jackson_2
Nimbostratus
Feb 11, 2009Initializing Statistics Profiles
How does one initialize a Statistics Profile?
I note that the STATS commands can't be used in RULE_INIT.
I'd like to keep a "max" value in a stats profile, but it has to start out at zero.
Craig
- Craig_Jackson_2
Nimbostratus
Ok, I just found "b profile stats reset". - Deb_Allen_18Historic F5 AccountHey Craig -
when RULE_INIT { set ::stats_rst 1 } when CLIENT_ACCEPTED { if { $::stats_rst == 1 }{ STATS::set profilename fieldname 0 set ::stats_rst 0 } }
- Deb_Allen_18Historic F5 Accountoops, value for STATS::set cmd obviously s/b 0, corrected code sample above...
- hoolio
Cirrostratus
We ran into the same issue in an iRule, so thanks for the workaround. - Deb_Allen_18Historic F5 Accountnice, thanks for doing that, will be a very useful add
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