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, TCP SYN, and UDP packets dropped because burst thresholds were exceeded and Gratuitous ARP packets dropped for being malformed or otherwise suspect.
- 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
Examples
The following example clears the statistics for a specific Ethernet interface.
device# clear statistics ethernet 1/1/1
The following example clears the rate counters for a tunnel interface.
device# clear statistics rate-counters tunnel 2
The following example clears the statistics about ICMP and TCP SYN packets dropped.
device# clear statistics dos-attack
History
| Release version | Command history |
|---|---|
| 08.0.61 | This command was modified to add laglag-id options. |