< Home

collect counter

Function

The collect counter command allows the flexible flow statistics exported to the NetStream Collector (NSC) to contain the number of bytes and packets.

The undo collect counter command restores the default setting.

By default, the flexible flow statistics exported to the NSC do not contain the number of bytes or packets.

Format

collect counter { bytes | packets }

undo collect counter { bytes | packets }

Parameters

Parameter

Description

Value

bytes

Indicates that the flexible flow statistics exported to NSC contain the number of bytes.

-

packets

Indicates that the flexible flow statistics exported to NSC contain the number of packets.

-

Views

Flexible flow statistics template view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To obtain richer flow statistics, configure whether flexible flow statistics contain the number of bytes and packets.

Precaution

The flexible flow statistics template that has been applied to an interface cannot be modified or deleted. Run the undo port ip netstream record command to unbind a specified flexible flow statistics template from the interface, and then you can modify or delete the template.

The command can be run multiple times, and all the configurations take effect.

Example

# Configure the flexible flow statistics template record1 to export the flexible flow statistics containing the number of packets to the NSC.

<HUAWEI> system-view
[HUAWEI] ip netstream record record1
[HUAWEI-record-record1] collect counter packets
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >