HP MSR2000/3000/4000 Router Series Network Management and Monitoring Configuration Guide

182
Ste
p
Command
Remarks
2. Enter interface view.
interface interface-type
interface-number
N/A
3. Enable NetStream on the
interface.
ip netstream { inbound | outbound }
By default, NetStream is disabled on
an interface.
Configuring NetStream filtering
When you configure NetStream filtering, follow these guidelines:
When NetStream filtering and sampling are both configured, packets are filtered first, and then the
matching packets are sampled.
The NetStream filtering function does not take effect on MPLS packets.
To configure NetStream filtering:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type interface-number
N/A
3. Configure NetStream
filtering on the interface.
ip netstream filter acl acl-number
{ inbound | outbound }
By default, NetStream filtering is
disabled and NetStream collects
the statistics of all IPv4 packets
passing through the interface.
Configuring NetStream sampling
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Create a sampler.
sampler sampler-name mode { fixed
| random } packet-interval rate
For more information about a sampler,
see "Configuring samplers."
3. Enter interface view.
interface interface-type
interface-number
N/A
4. Configure NetStream
sampling.
ip netstream sampler sampler-name
{ inbound | outbound }
By default, NetStream sampling is
disabled.
Configuring attributes of the NetStream data export
Configuring the NetStream export format
The NetStream export format exports NetStream data in version 5 or version 9 format, and the data
fields can be expanded to contain more information, including the following: