netstream export template option sampler

Function

The ip netstream export template option sampler command enables the function of exporting IPv4 interface option packet statistics.

The undo ip netstream export template option sampler command disables the function of exporting IPv4 interface option packet statistics.

The ipv6 netstream export template option sampler command enables the function of exporting IPv6 interface option packet statistics.

The undo ipv6 netstream export template option sampler command disables the function of exporting IPv6 interface option packet statistics.

By default, the function of exporting interface option packet statistics is disabled.

Format

ip netstream export template option sampler

ipv6 netstream export template option sampler

undo ip netstream export template option sampler

undo ipv6 netstream export template option sampler

Parameters

Parameter Description Value
ipv6

Displays the IPv6 netstream feature.

-

ip

Displays the IPv4 netstream feature.

-

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
netstream write

Usage Guidelines

Usage Scenario

Option packets are exported in V9 or IPFIX format. Therefore, the NetStream Data Exporter (NDE) must send a matching option template to the NetStream Collector (NSC) so that the NMS can properly parse option packets. After the NetStream sends packet statistics to the NSC, the NSC must analyze and store the statistics in sampling mode. To enable the function of exporting interface option packet statistics, such as the interface sampling mode, sampling ratio, sampling direction, and index, to an NSC server, run the ip netstream export template option sampler command or ipv6 netstream export template option sampler command.

At present, interface option packet statistics that can be exported are interface sampling parameters, the index of the interface where NetStream is enabled, and the interface direction. System option packet statistics that can be exported are system sampling parameters and the ID of the slot where NetStream sampling is enabled.

Prerequisites

  • If the ip netstream export source and ip netstream export host commands are not run in the system view before you run the ip netstream export template option sampler command, the system does not automatically output option statistics, and you cannot view the statistics increase using the display ip netstream export template option command.
  • If the ipv6 netstream export source and ipv6 netstream export host commands are not run in the system view before you run the ipv6 netstream export template option sampler command, the system does not automatically output option statistics, and you cannot view the statistics increase using the display ipv6 netstream export template option command.

Precautions

The sampling ratio on the interface is sent to the host in all slot views. If the sampling function is enabled in a slot but no host is configured, the host in the system view is used as the host in the slot.

Example

# Enable the function of exporting IPv6 interface option packet statistics.
<HUAWEI> system-view
[~HUAWEI] ipv6 netstream export template option sampler
# Enable the function of exporting IPv4 interface option packet statistics.
<HUAWEI> system-view
[~HUAWEI] ip netstream export template option sampler
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >