R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)

327
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 31 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/1/1 by referencing
sampler abc.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] ip netstream inbound
[Sysname-GigabitEthernet2/1/1] ip netstream sampler abc inbound
ip netstream timeout active
Use ip netstream timeout active to set the aging timer for active flows.
Use undo ip netstream timeout active to restore the default.
Syntax
ip netstream timeout active minutes