clear counters
To clear the interface counters, use the clear counters command in EXEC mode.
clear counters [all| type interface-path-id]
Syntax Description
(Optional) Clears counters on all interfaces.all
(Optional) Interface type. For more information, use the question mark (?) online
help function.
type
(Optional) Physical interface or virtual interface.
Use the show interfaces command to see a list of all interfaces currently
configured on the router.
Note
For more information about the syntax for the router, use the question mark (?) online
help function.
interface-path-id
Command Default
Counters for all interfaces are cleared.
Command Modes
EXEC
Command History
ModificationRelease
This command was introduced.Release 3.2
Usage Guidelines
Use the clear counters command to clear all the statistics counters displayed by the show interfaces command.
If no optional arguments are supplied or if the all keyword is specified, then the counters for all interfaces are
cleared. If an interface type is specified, then only the counters for that interface are cleared.
The clear counters command with the all option clears counters on all interfaces. When you enter this
command, the system prompts you for confirmation. You must then press Enter or the y key for the clear
counters command to take effect.
This command does not clear counters retrieved using Simple Network Management Protocol (SNMP),
but only those counters displayed with the show interfaces command.
Note
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
414 OL-24735-01
Statistics Service Commands
clear counters