R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference
180
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 }
undo ip netstream sampler sampler-name { inbound | outbound }
Default
NetStream sampling is disabled.
Views
Interface view
Default command level
3: Manage level
Parameters
sampler sampler-name: Specifies a sampler name, a string of up to 32 characters.
inbound: Enables NetStream sampling in the inbound direction.
outbound: Enables NetStream sampling in the outbound direction.
Examples
# Enable NetStream sampling in the inbound direction of GigabitEthernet 2/0/0 by referencing
sampler abc.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0/0
[Sysname-GigabitEthernet2/0/0] ip netstream inbound