Configuring netstream sampling – H3C Technologies H3C SR8800 User Manual
Page 153
141
Step Command
Remarks
2.
Create a
sampler.
sampler sampler-name mode fixed
packet-interval rate
The rate argument specifies the sampling rate,
that is, the number of packets in each sampling,
which equals the 2 to the power of rate. For
example, if the rate is 8, one packet out of 256
packets (2 to the power of 8) is sampled in each
sampling; if the rate is 10, one packet out of
1024 packets (2 to the power of 10) is
sampled.
3.
Enter interface
view.
interface interface-type
interface-number
N/A
4.
Enable
NetStream
sampling.
ip netstream sampler sampler-name
{ inbound | outbound }
By default, NetStream sampling is disabled.
5.
Mirror the
sampled traffic
to a NetStream
interface for
statistics
collection.
ip netstream mirror-to interface
Net-Stream interface-number
[ backup-interface Net-Stream
interface-number ] { inbound |
outbound }
N/A
Configuring NetStream sampling
A sampler must be created by using the sampler command before being referenced by NetStream
sampling. For more information about sampler, see the chapter “Sampler configuration.”
Configuring NetStream sampling
To configure NetStream sampling:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a traffic
behavior and enter
traffic behavior view.
traffic behavior behavior-name
N/A
3.
Mirror the traffic to a
NetStream interface for
statistics collection.
mirror-to interface Net-Stream
interface-number [ backup-interface
Net-Stream interface-number ] sampler
sampler-name
Optional.
By default, traffic mirroring is
disabled.
NOTE:
•
For more information about NetStream sampling configuration on an SPC card, see “
•
A sampler that is referenced by NetStream sampling cannot be deleted.
•
The collected statistics of different sampling mode or rate cannot be aggregated.
•
Statistics of different sampling mode or rate cannot be exported in the same version 5 or 8 format.
- H3C SR6600-X H3C SR6600 H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module