
467
Parameters
length
: Specifies the maximum number of bytes that can be copied, in the range of 18 to 512. As a
best practice, use the default value.
Examples
# Set the maximum number of bytes to 60 for flow sampling to copy per packet on GigabitEthernet
1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] sflow flow max-header 60
sflow sampling-mode
Use
sflow sampling-mode
to specify a flow sampling mode.
Use
undo
sflow sampling-mode
to restore the default.
Syntax
sflow sampling-mode
determine
undo sflow sampling-mode
Default
Fixed sampling mode is used.
Views
Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
determine
: Specifies the fixed sampling mode. For example, if the flow sampling interval is set to
4000 (by using the
sflow sampling-rate
command), the device samples packets as follows:
•
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.
Examples
# Specify fixed flow sampling mode on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] sflow sampling-mode determine
Related commands
sflow sampling-rate