R3303-HP 6600/HSR6600 Routers Network Management and Monitoring Command Reference

181
[Sysname] ip netstream max-entry disable-caching
# Configure the device to age out the entries when the upper limit is reached.
<Sysname> system-view
[Sysname] ip netstream max-entry aging
ip netstream mpls
Use ip netstream mpls to collect and export statistics on MPLS packets. If you do not provide any
arguments, the top label and IP fields are also counted. If the no-ip-fields keyword is provided, the
command exports data about MPLS packet only.
Use undo ip netstream mpls to disable counting and exporting of MPLS packets.
Syntax
ip netstream mpls [ label-positions label-position1 [ label-position2 [ label-position3 ] ] ] [ no-ip-fields ]
undo ip netstream mpls
Default
Counting and exporting of MPLS packets are disabled.
Views
System view
Default command level
3: Manage level
Parameters
label-positions: Specifies position of the labels to be counted.
no-ip-fields: Specifies not to count IP fields.
label-position1: Specifies the position of the first label in the label stack, in the range of 1 to 6.
label-position2: Specifies the position of the second label in the label stack, in the range of 1 to 6.
label-position3: Specifies the position of the third label in the label stack, in the range of 1 to 6.
Usage guidelines
The ip netstream mpls command enables statistics collection of MPLS packets for both IPv4 and IPv6
NetStream.
Examples
# Enable NetStream of MPLS packets with top label counted and exported, but without IP fields.
<Sysname> system-view
[Sysname] ip netstream mpls no-ip-fields
ip netstream sampler
Use ip netstream sampler to enable NetStream sampling.
Use undo ip netstream sampler to disable NetStream sampling.
Syntax
ip netstream sampler sampler-name { inbound | outbound }