< Home

reset stack port statistics

Function

The reset stack port statistics command clears stack port statistics.

Format

reset stack port statistics [ slot-id | port-id ]

Parameters

Parameter

Description

Value

slot-id

Specifies the stack ID of a member switch.

The value is an integer that ranges from 0 to 8.

port-id

Specifies the number of a stack port.

The value is 1 or 2.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before collecting interface traffic statistics in a certain period of time, run the reset stack port statistics command to clear existing traffic statistics. If you do not specify the port number, statistics on all stack ports are cleared. If you specify the port number, only statistics on the specified port are cleared.

Precautions

The cleared statistics cannot be restored. Therefore, exercise caution when you run the reset stack port statistics command.

This command can be used only after the stack function is enabled (default status).

Example

# Clear the statistics from all stack ports.

<HUAWEI> reset stack port statistics
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >