sflow sample-rate

For sFlow, sets the number of packets that are skipped before the next sample is taken.

Syntax

sflow sample-rate samplerate
no sflow sample-rate

Command Default

The default value is 2048 packets for all platforms.

Parameters

samplerate
Specifies the sampling rate value in number of packets. Valid value are
  • 1 - 16000000 - for SLX 9740 and Extreme 8820
  • 1 - 100000 - for all other platforms

Modes

Global Configuration Mode, Interface Mode

Usage Guidelines

Sample-rate is the average number of packets skipped before the next sample is taken.

The no form of this command restores the default sampling rate.

Note

Note

For the SLX 9740 and Extreme 8820 devices, the configurable sample rate value is 1-16000000.

For all other platforms, the configurable sample rate value is 1-100000.

Examples

This example shows how to change the sampling rate to 4096:

SLX# configure terminal
SLX (config) # sflow sample-rate 4096
SLX (config)# 

This example shows how to configure sampling rate to 4096 on to an specific ethernet interface.

SLX# configure terminal
SLX (config) # 
SLX (config)# interface ethernet 0/25:2
SLX (conf-if-eth-0/25:2)# sflow sample-rate 4096 
SLX (conf-if-eth-0/25:2)#