sflow export

Configures exporting, to the sFlow collector, the CPU usage and memory usage information or exporting CPU-directed data.
Syntax
sflow export { cpu-traffic [ traffic-seconds ] | system-info [ info-seconds ] }
no sflow export { cpu-traffic [ traffic-seconds ] | system-info [ info-seconds ] }
Command Default

By default, CPU and memory usage information and CPU-directed data are not exported.

Parameters
cpu-traffic
Specifies the CPU usage.
traffic-seconds
Specifies the average sampling rate of incoming packets on an sFlow-enabled port to the number of flow samples taken from those packets.
system-info
Specifies the system information and the memory usage.
info-seconds
Specifies the polling interval, in seconds. The default polling interval for exporting CPU and memory usage information to the sFlow collector is 20 seconds and the interval for exporting CPU-directed data to the sFlow collector is 16.
Modes

Global configuration mode

Usage Guidelines

The polling interval defines how often sFlow data for a port is sent to the sFlow collector.

The no form of the command removes the configured value and sets the sampling rate or the polling interval to its default value.

Examples

The following example sets the sampling rate to 2048.

device(config)# sflow export cpu-traffic 2048

The following example enables the export of CPU usage and memory usage information.

device(config)# sflow export system-info

The following example sets the polling interval for exporting CPU and memory usage information to 30 seconds.

device(config)# sflow export system-info 30