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).
- ethernet unit/slot/port
- Clears egress queue statistics (resets the statistics to zero) for all unit/slot/port.
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
History
| Release version | Command history |
|---|---|
| 08.0.61 | This command was modified to add lag lag-id options. |