
190
Use the
undo sflow flow collector
command to remove the sFlow collector configured for flow sampling.
By default, no sFlow collector is specified for flow sampling.
This command is supported only on physical Ethernet interfaces, but not on logical interfaces (such as
VLAN interfaces) and management interfaces.
Examples
# Specify the collector number 2 on GigabitEthernet1/0/1 for flow sampling.
<Sysname> system-view
[Sysname] interface GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] sflow flow collector 2
sflow flow max-header
Syntax
sflow flow max-header
length
undo sflow flow max-header
View
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Default level
2: System level
Parameters
Length
: Specifies the maximum bytes of a sampled packet that can be copied, in the range of 18 to 512.
Description
Use the
sflow flow max-header
command to set the maximum bytes of a sampled packet that can be
copied (starting from the header).
Use the
undo sflow flow max-header
command to restore the default.
By default, up to 128 bytes of a sampled packet that can be copied. H3C recommends you use the
default value.
This command is supported only on physical Ethernet interfaces, but not on logical interfaces (such as
VLAN interfaces) and management interfaces.
Examples
# Set the maximum bytes of a sampled packet that can be copied to 60.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] sflow flow max-header 60
sflow sampling-mode
Syntax
sflow sampling-mode
{
determine
|
random
}
undo sflow sampling-mode