R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)

223
Usage guidelines
This command is supported on physical Ethernet interfaces only, instead of logical interfaces (Ethernet
subinterfaces and VLAN interfaces) and network management interfaces.
Examples
# Specify the fixed sample mode on Ethernet 1/1.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] 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 sampling.
Syntax
sflow sampling-rate rate
undo sflow sampling-rate
Views
Layer 3 Ethernet interface view
Default command level
2: System level
Parameters
rate: Specifies the number of packets out of which flow sampling will sample a packet on the interface,
in the range of 1000 to 5000.
Usage guidelines
This command is applicable only to Layer 3 Ethernet interfaces whose link mode cannot be changed by
using the port link-mode command.
Examples
# Set Ethernet 1/1 to sample a packet out of 4000 packets.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] 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.