Celestica Documentation Portal

Find your product documents here

SFLOW interface sampling-rate

Configures the sample-rate for a specific interface. The default sample rate based on interface speed is:
  • 1-in-1000 for a 1G link
  • 1-in-10,000 for a 10G link
  • 1-in-40,000 for a 40G link
  • 1-in-100,000 for a 100G link
It is recommended not to change the defaults. This command is to be used only in case of exceptions (to set the sample-rate to the nearest power-of-2, if there are hardware restrictions in using the defaults).
Syntaxsflow sampling-rate <sample-rate-value>
Command mode Ethernet interface
Parameters
  • sample-rate-value – Sampling rate. Range: 256 – 8388608.

UsageUse no sflow sampling-rate to change it to default value.
Supported Releases 1.0.0 or later
Click commandconfig sflow interface sample-rate <interface_name> <sample_rate>
Example
sonic(config)#interface Ethernet 1
sonic(conf-if-Ethernet1)# sflow sampling-rate 300
sonic(conf-if-Ethernet1)# exit
sonic(config)#