The ip netstream apply record command applies the NetStream IPv4 flexible flow service.
The undo ip netstream apply record command deletes the NetStream IPv4 flexible flow service applied.
The ipv6 netstream apply record command applies the NetStream IPv6 flexible flow service.
The undo ipv6 netstream apply record command deletes the NetStream IPv6 flexible flow service applied.
By default, no NetStream IPv4 or IPv6 flexible flow service is applied.
Usage Scenario
After you configure a flexible flow, run the ip netstream apply record command to apply the flexible flow in the system view. The destination end configured in the system or slot view then samples and outputs packets as the flexible flow.
Prerequisites
Before applying a flexible flow, you must run the match or collect command to configure matching rules or collected fields. Otherwise, the flexible flow cannot be applied.
Precautions
Only one IPv4 flexible flow or one IPv6 flexible flow can be applied in the system view.
Flexible flow packets can be output only in the V9 format. If the ip netstream export version command or ipv6 netstream export version command is run in the system view to specify the V5 or IPFIX packet output format, the ip netstream apply record command and ipv6 netstream apply record command does not take effect.<HUAWEI> system-view [~HUAWEI] ipv6 netstream record rec1 [*HUAWEI-record6-rec1] collect input packets 64 [*HUAWEI-record6-rec1] commit [~HUAWEI-record6-rec1] quit [~HUAWEI] ipv6 netstream apply record rec1
<HUAWEI> system-view [~HUAWEI] ip netstream record rec1 [*HUAWEI-record-rec1] collect input packets 64 [*HUAWEI-record-rec1] commit [~HUAWEI-record-rec1] quit [~HUAWEI] ip netstream apply record rec1