sflow polling-interval

Configures the sflow polling interval.
Syntax
sflow polling-interval secs
no sflow polling-interval
Command Default

The default polling interval is 20 seconds.

Parameters
secs
Specifies the polling interval, in seconds. The value can range from 0 through 429496729. If you specify 0, counter data sampling is disabled. The default polling interval is 20 seconds.
Modes

Global configuration mode

Usage Guidelines

The polling interval defines how often sFlow byte and packet counter data for a port is sent to the sFlow collectors. If multiple ports are enabled for sFlow, the device staggers transmission of the counter data to smooth performance. For example, if sFlow is enabled on two ports and the polling interval is 20 seconds, the device sends counter data every 10 seconds. The counter data for one of the ports is sent after 10 seconds, and the counter data for the other port is sent after an additional 10 seconds. 10 seconds later, new counter data for the first port is sent.

The interval value applies to all interfaces on which sFlow is enabled.

The no form of the command returns the polling interval to the default value.

Examples

The following example sets the polling interval to 30 seconds.

device(config)# sflow polling-interval 30