sflow sample-rate (global version)

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 is 32768.

Parameters

samplerate
Specifies the sampling rate value in packets. Valid values range from 2 through 16777215 packets.

Modes

Global configuration mode

Usage Guidelines

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

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

Examples

To change the sampling rate to 4096:

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