clear counters

Clears the IP counter statistics on the device.

Syntax

clear counters{all | interface { ve ve-id | all } }
clear countersslot slot-id

Parameters

all
Clears all IP counter statistics on the device or the selected interface.
interface
Specifies an interface.
ve ve-id
Clears all VE statistics for the specified VE ID.
all
Clears all VE counter statistics.
slot slot-id
For devices that do not support line cards, specify 0.

Modes

Privileged EXEC mode

Examples

This example clears all VE statistics.
device# clear counters interface ve all