set flow-stat interval (interface view)

Function

The set flow-stat interval command sets the interval at which traffic statistics are collected on an interface.

The undo set flow-stat interval command restores the default interval.

By default, the interval for collecting traffic statistics on an interface is 300 seconds.

Format

set flow-stat interval interval

undo set flow-stat interval

Parameters

Parameter Description Value
interval

Specifies the interval at which traffic statistics are collected on an interface.

The value is an integer ranging from 10 to 600 and must be a multiple of 10, in seconds.

Views

Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, 50GE Layer 2 sub-interface view, Layer 2 50GE interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk interface view, FlexE sub-interface view, GE Layer 2 sub-interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view, Global-VE layer2 subinterface view, Global VE sub-interface view, Global VE interface view, Loopback interface view, MTI interface view, Mtunnel view, NULL interface view, PW-VE sub-interface view, PW-VE interface view, Tunnel interface view, VBDIF interface view, VE layer2 subinterface view, VE sub-interface view, VE interface view, VLANIF interface view, Layer 2 sub-interface view, Sub-interface view, Virtual template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
interface-mgr write

Usage Guidelines

The interval configured in the interface view takes effect on the current interface but not on other interfaces.

Precautions

  • The new interval takes effect after the original interval expires. Traffic statistics are updated in the second cycle after the new interval takes effect.
  • The interval at which interface traffic statistics are collected cannot be configured on the management interface.
  • The interval set in the interface view takes precedence over the interval set in the system view.

Example

# Set the interval at which traffic statistics are collected on GE 0/1/1 to 120 seconds.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] set flow-stat interval 120
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >