R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)
154
Default command level
3: Manage level
Parameters
max-entries: Specifies maximum number of entries that the cache can save.
Examples
# Set the maximum entries in the cache to 5000.
<Sysname> system-view
[Sysname] ip netstream max-entry 5000
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.
The values for the label-position1, label-position2, and label-position3 arguments cannot be the same
when multiple label positions are configured. For example, you can specify the label-position1,
label-position2, and label-position3 arguments as 3, 1, 2 respectively in the ip netstream mpls
label-positions 3 1 2 command.
Examples
# Enable NetStream of MPLS packets with top label counted and exported, but without IP fields.
<Sysname> system-view










