202
Configuring NetStream sampling
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Enter Layer 2 Ethernet
interface view or Layer
3 Ethernet interface
view.
interface interface-type interface-number —
3. Configure NetStream
sampling.
ip netstream sampler sampler-name
{ inbound | outbound }
Required.
Disable by default.
You can also execute the
command in system view to
enable NetStream sampling for
all interfaces.
NOTE:
• When NetStream filtering and sampling are both configured, packets are filtered first and then the
permitted packets are sampled.
• A sampler must be created by using the sampler command before being referenced by NetStream
sampling.
• A sampler that is referenced by NetStream sampling cannot be deleted. For more information about
samplers, see “Configuring a sampler.”
Configuring NetStream data export
To allow the NDE to export collected statistics to the NetStream server, configure the source interface out
of which the data is sent and the destination address to which the data is sent.
Configuring NetStream traditional data export
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Enter Layer 2 Ethernet
interface view or Layer 3
Ethernet interface view.
interface interface-type interface-
number
—
3. Enable NetStream.
ip netstream { inbound |
outbound }
Required.
Disabled by default.
4. Exit to system view.
quit —
5. Configure the destination
address for the
NetStream traditional
data export.
ip netstream export host ip-
address udp-port [ vpn-instance
vpn-instance-name ]
Required.
By default, no destination address is
configured, in which case, the
NetStream traditional data is not
exported.