netstream

Function

The ip netstream command enables NetStream IPv4 to collect statistics about incoming or outgoing data flows on an interface.

The undo ip netstream command disables NetStream IPv4 from collecting statistics about incoming or outgoing data flows on an interface.

The ipv6 netstream command enables NetStream IPv6 to collect statistics about incoming or outgoing data flows on an interface.

The undo ipv6 netstream command disables NetStream IPv6 from collecting statistics about incoming or outgoing data flows on an interface.

By default, NetStream is disabled from collecting statistics about incoming or outgoing data flows on an interface.

Format

ip netstream { inbound | outbound }

ipv6 netstream { inbound | outbound }

undo ip netstream { inbound | outbound }

undo ipv6 netstream { inbound | outbound }

Parameters

Parameter Description Value
inbound

Enables NetStream to collect statistics about incoming data flows on an interface.

-

outbound

Enables NetStream to collect statistics about outgoing data flows on an interface.

-

ipv6

Displays the IPv6 netstream feature.

-

ip

Displays the IPv4 netstream feature.

-

Views

100GE Layer 2 sub-interface view, 100GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, VLANIF interface view, Sub-interface view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
netstream write

Usage Guidelines

Usage Scenario

When a specified interface needs to monitor or analyze features of incoming or outgoing data flows, and statistics collected by NetStream are output in original flows or aggregated flows, the command can be used to enable NetStream to collect statistics about incoming or outgoing data flows on the interface.

Configuration Impact

After NetStream is enabled to collect statistics about incoming or outgoing data flows, statistics about unicast and multicast packets are collected.

Precautions

  • This command is not supported by the management network port.
  • NetStream sampling function cannot be configured on a channelized sub-interface with network slicing configured.

Example

# Enable IPv4 NetStream to collect statistics about incoming or outgoing data flows on GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ip netstream inbound
[*HUAWEI-GigabitEthernet0/1/0] ip netstream outbound
# Enable NetStream to collect statistics about incoming or outgoing data flows on VE sub-interface.
<HUAWEI> system-view
[~HUAWEI] interface virtual-ethernet 0/1/0.1
[~HUAWEI-Virtual-Ethernet0/1/0.1] ip netstream inbound
[*HUAWEI-Virtual-Ethernet0/1/0.1] ip netstream outbound
# Enable IPv6 NetStream to collect statistics about incoming or outgoing data flows on GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ipv6 netstream inbound
[*HUAWEI-GigabitEthernet0/1/0] ipv6 netstream outbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >