Forum Discussion
Kevin_Stewart
Employee
Sep 12, 2009It's been awhile since I've worked with STAT profiles, but if I understand it correctly, a single STAT profile can be used across multiple VIPs. If that is the case, you need to clear a single STAT value, and iRules is the only way to do it, you could create a "Services VIP". Its sole job is to execute iRules and return a response. You would then access that VIP via command line Curl.
when HTTP_REQUEST {
switch [HTTP::uri] {
"/FIELD_RESET" {
STATS::set $statProfile $fieldName 0
HTTP::respond 200 Content "OK"
}
default {
HTTP::respond 200 Content "Nothing selected"
}
}
}