clear statistics

Clears all counters and statistics.
Syntax
clear statistics [ dos-attack | traffic-policy traffic-policy-name ]
clear statistics [ rate-counters ] [ethernet unit/slot/port | lag lag-id | management number | tunnel [ number] | unit number ]
Parameters
dos-attack
Clears statistics about ICMP and TCP SYN packets dropped because burst thresholds were exceeded.
traffic-policy traffic-policy-name
Clears traffic policy counters (access list and rate limit counters).
rate-counters
Clears the rate counters.
ethernet unit/slot/port
Clears egress queue statistics (resets the statistics to zero) for all unit/slot/port.
lag lag-id
Specifies the LAG virtual interface.
management number
Clears all statistics on a management port.
tunnel

Clears all GRE tunnel statistics.

number
Clears GRE tunnel statistics for the specified tunnel.
unit number
Clears a stack unit statistics.
Modes

Privileged EXEC mode

Global configuration mode

Interface configuration mode

Examples

The following example clears the statistics for a specific Ethernet interface.

device(config)# clear statistics ethernet 1/1/1

The following example clears the rate counters for a tunnel interface.

device(config)# clear statistics rate-counters tunnel 2

The following example clears the statistics about ICMP and TCP SYN packets dropped.

device(config)# clear statistics dos-attack

The following example clears access list and rate limit counters.

device(config)# clear statistics traffic-policy counttwo
History
Release version Command history
08.0.61 This command was modified to add lag lag-id options.