netstream export host (NetStream monitoring view)

Function

The ip netstream export host command configures a destination IP address and a UDP port number for the output NetStream IPv4 flows.

The undo ip netstream export host command deletes a destination IP address and a UDP port number configured for the output NetStream IPv4 flows.

The ipv6 netstream export host command configures a destination IPv6 address and a UDP port number for the output NetStream IPv6 flows.

The undo ipv6 netstream export host command deletes a destination IPv6 address and a UDP port number configured for the output NetStream IPv6 flows.

By default, no destination IP address or UDP port number is configured.

Format

ip netstream export host { ip-address | ipv6 ipv6-address } port [ version { 5 | 9 | ipfix } ] [ dscp dscp-value ]

ip netstream export host { ip-address | ipv6 ipv6-address } port vpn-instance vpn-instance-name [ version { 5 | 9 | ipfix } ] [ dscp dscp-value ]

ipv6 netstream export host { ip-address | ipv6 ipv6-address } port [ version { 9 | ipfix } ] [ dscp dscp-value ]

ipv6 netstream export host { ip-address | ipv6 ipv6-address } port vpn-instance vpn-instance-name [ version { 9 | ipfix } ] [ dscp dscp-value ]

undo ip netstream export host { ip-address | ipv6 ipv6-address } port [ version { 5 | 9 | ipfix } ] [ dscp dscp-value ]

undo ip netstream export host { ip-address | ipv6 ipv6-address } port vpn-instance vpn-instance-name [ version { 5 | 9 | ipfix } ] [ dscp dscp-value ]

undo ipv6 netstream export host { ip-address | ipv6 ipv6-address } port [ version { 9 | ipfix } ] [ dscp dscp-value ]

undo ipv6 netstream export host { ip-address | ipv6 ipv6-address } port vpn-instance vpn-instance-name [ version { 9 | ipfix } ] [ dscp dscp-value ]

Parameters

Parameter Description Value
ip-address

Specifies the NSC IPv4 address to which NetStream flows are output.

  • The value is in dotted decimal notation.
ipv6

Displays the IPv6 netstream feature.

-

ipv6-address

Specifies the NSC IPv6 address to which NetStream flows are output.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

port

Specifies the NSC UDP port number to which NetStream flows are output.

The value is an integer ranging from 1 to 65535.

version

Specifies the format of output NetStream packets. By default, the format configured in the system view is used.

The packet output format can be specified only after the destination address of NetStream packets is configured in the NetStream monitoring service view.

-

5

Indicates that the format of output NetStream packets is V5.

-

9

Indicates that the format of output NetStream packets is V9.

-

ipfix

Indicates that the format of output NetStream packets is IPFIX.

-

dscp dscp-value

Specifies a differentiated services code point (DSCP) value for output NetStream packets.

The value is an integer ranging from 1 to 63.

ip

Displays the IPv4 netstream feature.

-

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

Views

NetStream IPv6 monitoring view, NetStream monitoring view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
netstream write

Usage Guidelines

Usage Scenario

An NDE samples data traffic and sends the sampled data to an NSC for processing. To specify the NSC IP address to which the NDE outputs sampled data, run this command.

Configuration Impact

The destination IP address configured in the NetStream monitoring view is for original NetStream flows.

For original flows, the destination IP address configured in the slot view takes precedence over that configured in the system view. If no destination IP address is configured in the slot view, the destination IP address configured in the system view is used. When destination IP address configured in the slot view,

  • If a destination IP address is configured in the slot view rather than the monitoring view, but the monitoring service is deployed on the associated interface, template packets are output to the destination IP address configured in the slot view.
  • If two different destination IP addresses are respectively configured in the slot and monitoring views, and the monitoring service is deployed on the associated interface, template packets are output to the destination IP addresses configured in the netstream monitoring view.

Example

# In the NetStream monitoring service view, set the destination IP address of IPv6 Stream packets to 10.1.1.1, port number to 3000, packet format to V9, and DSCP value to 10.
<HUAWEI> system-view
[~HUAWEI] ipv6 netstream monitor 1
[*HUAWEI-monitor-1] ipv6 netstream export host 10.1.1.1 3000 version 9 dscp 10
# In the NetStream monitoring service view, set the destination IP address of IPv4 Stream packets to 10.1.1.1, port number to 3000, packet format to V9, and DSCP value to 10.
<HUAWEI> system-view
[~HUAWEI] ip netstream monitor 1
[*HUAWEI-monitor-1] ip netstream export host 10.1.1.1 3000 version 9 dscp 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >