sflow version

Configures the version used for exporting sFlow data.
Syntax
sflow version version-num
no sflow version [ version-num ]
Command Default

When sFlow is enabled globally on the device, the sFlow agent exports sFlow data in version 5 format.

Parameters
version-num
Specifies the version number. The version can be 2 or 5.
Modes

Global configuration mode

Usage Guidelines

You can switch between versions without rebooting the device or disabling sFlow.

Note: When the sFlow version number is changed, the system resets sFlow counters and flow sample sequence numbers.

The no form of the command resets the sFlow verison to its default.

Examples

The following example sets the sFlow version to 2.

device(config)# sflow version 2