reset counters interface
Use reset counters interface to clear statistics for an S-channel interface, an S-channel aggregate interface, a VSI interface, or a VSI aggregate interface.
Syntax
reset counters interface [ { s-channel | schannel-aggregation } [ interface-number:channel-id | interface-number:channel-id.vsi-local-id ] ]
Views
User view
Predefined user roles
network-admin
Parameters
s-channel: Specifies an S-channel interface or a VSI interface.
schannel-aggregation: Specifies an S-channel aggregate interface or a VSI aggregate interface.
interface-number:channel-id: Specifies an S-channel interface or S-channel aggregate interface by its ID. The interface-number argument specifies the interface where the S-channel resides. The channel-id argument specifies the ID of the S-channel.
interface-number:channel-id.vsi-local-id: Specifies a VSI interface or VSI aggregate interface by its ID. The interface-number argument specifies the interface where the S-channel resides. The channel-id argument specifies the ID of the S-channel. The vsi-local-id argument specifies the local ID of the VSI.
Usage guidelines
Follow these guidelines when you clear statistics for an S-channel interface, an S-channel aggregate interface, a VSI interface, or a VSI aggregate interface:
To collect traffic statistics for an S-channel interface, S-channel aggregate interface, VSI interface, or a VSI aggregate interface in a certain period, use this command to clear existing statistics for the interface.
If you do not specify any parameters, the command clears statistics for all interfaces.
If you specify only the s-channel or schannel-aggregation keyword, the command clears statistics for all created S-channel interfaces, S-channel aggregate interfaces, VSI interfaces, and VSI aggregate interfaces.
Examples
# Clear statistics for S-channel interface S-Channel 1/0/1:10.
<Sysname> reset counters interface s-channel 1/0/1:10
# Clear statistics for S-channel aggregate interface Schannel-Aggregation 1:10.
<Sysname> reset counters interface schannel-aggregation 1:10
# Clear statistics for VSI interface S-Channel 1/0/1:10.1.
<Sysname> reset counters interface s-channel 1/0/1:10.1
# Clear statistics for VSI aggregate interface Schannel-Aggregation 1:10.1.
<Sysname> reset counters interface schannel-aggregation 1:10.1
Related commands
display interface