Use the undo sflow interval command to restore the default interval.
By default, the sampling interval is 20 seconds.
Examples
# Configure the counter sampling interval as 50 seconds.
<Sysname> system-view
[Sysname] sflow interval 50
sflow sampling-mode
Syntax
sflow sampling-mode { determine | random }
undo sflow sampling-mode
View
Ethernet port view
Default Level
2: System level
Parameters
determine: Sample a fixed number of packets.
random: Sample packets randomly.
Description
Use the sflow sampling-mode command to specify the packet sampling mode.
Use the undo sflow sampling-mode command to restore the default.
By default, the packet sampling mode is random.
Note that this command should be used after sFlow is enabled on the current port.
Currently, the determine mode is not supported on Switch 4510G Family.
Examples
# Configure the interface to sample a fixed number of inbound packets.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] sflow enable inbound
[Sysname-GigabitEthernet1/0/1] sflow sampling-mode determine
13-5