<Sysname> system-view
[Sysname] interface ten-gigabitethernet1/1/5
[Sysname-Ten-GigabitEthernet1/1/5] sflow sampling-mode determine
Related commands
sflow sampling-rate
sflow sampling-rate
Use sflow sampling-rate to specify the number of packets out of which flow sampling will sample a
packet on an interface.
Use undo sflow sampling-rate to disable flow sampling.
Syntax
sflow sampling-rate rate
undo sflow sampling-rate
Default
Flow sampling samples no packet.
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
rate: Specifies the number of packets out of which flow sampling will sample a packet on the interface.
The value range is 1000 to 500000.
Examples
# Enable flow sampling to sample a packet out of 4000 packets on Ten-GigabitEthernet 1/1/5.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/1/5
[Sysname-Ten-GigabitEthernet1/1/5] sflow sampling-rate 4000
Related commands
sflow sampling-mode
sflow source
Use sflow source to specify the source IP address of sFlow packets.
Use undo sflow source to remove the specified source IP address.
Syntax
sflow source { ip ip-address | ipv6 ipv6-address } *
undo sflow source { ip | ipv6 } *
Default
The source IP address of sent sFlow packets is determined by routing.
148