Sflow Flow Max-Header; Sflow Sampling-Mode - H3C SR6600 Command Reference Manual

Network management and monitoring command reference
Hide thumbs Also See for SR6600:
Table of Contents

Advertisement

[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/0/1] sflow flow collector 2

sflow flow max-header

Use sflow flow max-header to set the maximum number of bytes of a packet (starting from the packet
header) that flow sampling can copy.
Use undo sflow flow max-header to restore the default.
Syntax
sflow flow max-header length
undo sflow flow max-header
Default
Flow sampling can copy up to 128 bytes of a packet. H3C recommends that you use the default value.
Views
Interface view
Default command level
2: System level
Parameters
Length: Specifies the maximum number of bytes that can be copied, in the range of 18 to 512.
Examples
# Set the maximum number of bytes that can be copied to 60 on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/0/1] sflow flow max-header 60

sflow sampling-mode

Use sflow sampling-mode to specify the packet sampling mode.
Use undo sflow sampling-mode to restore the default.
Syntax
sflow sampling-mode { determine | random }
undo sflow sampling-mode
Views
Interface view
Default command level
2: System level
Parameters
determine: Specifies the fixed sampling mode. For example, if the flow sampling rate is set to 4000 (by
using the sflow sampling-rate command), the device randomly samples a packet, like the tenth packet,
from the first 4000 packets. The next time the device samples the 4010th packet, and so on.
246

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sr6600-x

Table of Contents