![Huawei NetEngine5000E Скачать руководство пользователя страница 144](http://html.mh-extra.com/html/huawei/netengine5000e/netengine5000e_configuration-manual_169429144.webp)
The sampling mode and sampling ratio are configured for the interface.
By default, NetStream is disabled from packet sampling.
NOTE
The sampling mode and sampling ratio configured in the system view are applicable to all interfaces on
the device. The sampling mode and sampling ratio configured in the interface view takes precedence over
those configured in the system view.
Step 5
Run:
ip netstream
{
inbound
|
outbound
}
NetStream is enabled on the interface. Statistics about packets' BGP next-hop information can
also be collected. Original flows output in V5 format.
By default, NetStream is disabled from collecting the statistics about incoming and outgoing
unicast flows.
Step 6
Run:
commit
The configuration is committed.
----End
6.3.6 Checking the Configuration
In routine maintenance or after NetStream configurations are complete, you can run the
following commands in any view to view the running status of NetStream functions.
Procedure
l
Run the
display ip netstream cache origin
slot
slot-id
command to check information
about the NetStream buffer.
l
Run the
display ip netstream statistics
slot
slot-id
command to view statistics about
NetStream flows.
l
Run the
display netstream
{
all
|
global
|
interface
interface-type interface-number
}
command to check NetStream configurations in different views.
----End
Example
Run the
display ip netstream cache origin
slot
3
command. If NetStream is successfully
configured, you can view various statistics about IP packets cached in the NetStream buffer on
the router.
<HUAWEI>
display ip netstream cache origin slot 3
Show information of IP and MPLS cache of slot 3 is starting.
get show cache user data success.
DstIf DstP Msk Pro Tos Flags Packets
SrcIf SrcP Msk
NextHop Direction
DstIP DstAs
SrcIP SrcAs
BGP: BGP NextHop TopLabelType
Label1 Exp1 Bottom1
Label2 Exp2 Bottom2
HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
6 NetStream Configuration
Issue 01 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
136