HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference
212
Default
Counting and exporting of MPLS packets are disabled.
Views
System view
Predefined user roles
network-admin
Parameters
label-positions: Specifies position of the labels to be counted.
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.
no-ip-fields: Specifies not to count IP fields.
Usage guidelines
The ip netstream mpls command enables statistics collection of MPLS packets for both IPv4 and IPv6
NetStream.
If multiple labels are to be counted, the label positions specified cannot be the same and are in
ascending order.
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 }
undo ip netstream sampler sampler-name { inbound | outbound }
Default
NetStream sampling is disabled.
Views
Interface view
Predefined user roles
network-admin
Parameters
sampler sampler-name: Specifies a sampler name, a case-insensitive string of 1 to 32 characters.
inbound: Enables NetStream sampling in the inbound direction.