The ip netstream export template option command sets the packet interval and time interval at which the IPv4 option template is refreshed.
The undo ip netstream export template option command restores the IPv4 default packet interval and time interval.
The ipv6 netstream export template option command sets the packet interval and time interval at which the IPv6 option template is refreshed.
The undo ipv6 netstream export template option command restores the IPv6 default packet interval and time interval.
By default, the option template is refreshed every 30 minutes and every 20 packets.
ip netstream export template option { refresh-rate packet-number | timeout-rate timeout-interval }
ipv6 netstream export template option { refresh-rate packet-number | timeout-rate timeout-interval }
undo ip netstream export template option { refresh-rate | timeout-rate }
undo ipv6 netstream export template option { refresh-rate | timeout-rate }
Parameter | Description | Value |
---|---|---|
refresh-rate packet-number |
Specifies the packet interval at which the option template is refreshed. |
The value is an integer ranging from 1 to 600. The default value is 20. |
timeout-rate timeout-interval |
Specifies the time interval at which the option template is refreshed. |
The value is an integer ranging from 1 to 3600, in minutes. The default value is 30. |
ipv6 |
Displays the IPv6 netstream feature. |
- |
ip |
Displays the IPv4 netstream feature. |
- |
Usage Scenario
Option packets are output in V9 or IPFIX format. Therefore, the NDE must send the corresponding option template to the NSC to parse packets. To set the packet interval and time interval at which the option template is refreshed, run the ip netstream export template option command.
Generally, the higher the network traffic volume is, the smaller the template refresh interval should be set, but the volume of network traffic generated to send the template also increases. Therefore, set a proper template refresh interval using the ip netstream export template option refresh-rate command. The default value is recommended. In the case of burst network traffic, configure both the time interval and the packet interval to ensure that statistics about burst network traffic can be parsed. The packet interval and time interval are independent of each other and take effect simultaneously.<HUAWEI> system-view [~HUAWEI] ipv6 netstream export template option timeout-rate 50 [*HUAWEI] ipv6 netstream export template option refresh-rate 30
<HUAWEI> system-view [~HUAWEI] ip netstream export template option timeout-rate 50 [*HUAWEI] ip netstream export template option refresh-rate 30