set policy autoclear (S-, K-Series)

Use this command to enable or disable the policy rule auto clear function.

Syntax

set policy autoclear {[enable | disable] [interval interval] [profile {enable | disable}] [ports port-list [append | clear]]}

Parameters

enable | disable Enables or disables autoclear when link (operstatus up) is detected. The default setting is disable.
interval interval Specifies the interval in minutes at which the device will automatically clear rule usage statistics. Valid values are 0 - 65535. Default value is 0.
profile enable | disable Specifies that rule usage is cleared (enable), or not cleared (disable), when the profile is activated, if the rule is assigned to that profile. The default setting is disable.
ports port-list Specifies port(s) on which rule usage statistics will be automatically cleared by the autoclear actions.
append | clear Appends this port list to the designated port list on which rule usage statistics will be automatically cleared, or removes this port list.

Defaults

None.

Mode

All command modes.

Usage

When enabled, this command clears rule usage information, if operational status “up” is detected on any port.

Use the show policy rule port-hit or show policy rule usage-list commands to display statistics affected by this command.

Example

This example shows how to clear the rule usage list on all ports for a rule assigned to a profile when the profile is activated:

System(rw)->set policy autoclear profile enable ports ge.*.*