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.
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
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.
<HUAWEI> system-view [~HUAWEI] ipv6 netstream export template option sampler
<HUAWEI> system-view [~HUAWEI] ip netstream export template option sampler