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
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 no parameters are specified, the command clears statistics for all interfaces.
If only the s-channel or schannel-aggregation keyword is specified, the command clears statistics for all created S-channel interfaces, S-channel aggregate interfaces, VSI interfaces, and VSI aggregate interfaces.
Examples
# Clear statistics for the S-channel interface S-Channel 1/0/1:10.
<Sysname> reset counters interface s-channel 1/0/1:10
# Clear statistics for the S-channel aggregate interface Schannel-Aggregation 1:10.
<Sysname> reset counters interface schannel-aggregation 1:10
# Clear statistics for the VSI interface S-Channel 1/0/1:10.1.
<Sysname> reset counters interface s-channel 1/0/1:10.1
# Clear statistics for the VSI aggregate interface Schannel-Aggregation 1:10.1.
<Sysname> reset counters interface schannel-aggregation 1:10.1
Related commands
display interface