show sflow

Displays the sFlow configuration and statistics.
Syntax
show sflow
Modes

User EXEC mode

Privileged EXEC mode

Global configuration mode

Interface configuration mode

Usage Guidelines

You can display the rates that you configured for the default sampling rate, module rates, and all sFlow-enabled ports. You can view the agent IP address and several other details.

The show sflow command displays the following information.

Output field Description
sFlow version The version of sFlow enabled on the device, which can be 2 or 5.
sFlow services The feature state, which can be enabled or disabled.
sFlow agent IP address The IP address that sFlow is using in the agent_address field of packets sent to the collectors.
Collector The collector information. The following information is displayed for each collector:
  • IP address
  • UDP port
If more than one collector is configured, the line above the collectors indicates how many have been configured.
Configured UDP source The UDP source port used to send data to the collector.
Polling interval The polling interval of the port counter.
Configured default sampling rate The configured global sampling rate. If you change the global sampling rate, the value you enter is shown here. The actual rate calculated by the software based on the value you enter is listed on the next line, "Actual default sampling rate."
Actual default sampling rate The actual default sampling rate.
The maximum sFlow sample size The maximum size of a flow sample sent to the sFlow collector.
exporting cpu-traffic Indicates whether the sFlow agent is configured to export data destined to the CPU (for example, Telnet sessions) to the sFlow collector:
  • enabled
  • disabled
exporting cpu-traffic sample rate

The sampling rate for CPU-directed data, which is the average ratio of the number of incoming packets on an sFlow-enabled port, to the number of flow samples taken from those packets.

exporting system-info

Indicates whether the sFlow agent is configured to export information about CPU and memory usage to the sFlow collector:

  • enabled
  • disabled

exporting system-info polling interval Specifies the interval, in seconds, at which sFlow data is sent to the sFlow collector.
UDP packets exported The number of sFlow export packets the device has sent.
Note: Each UDP packet can contain multiple samples.
sFlow samples collected The number of sampled packets that have been sent to the collectors.
sFlow ports The ports on which you enabled sFlow.
Module Sampling Rates The configured and actual sampling rates for each module. If a module does not have any sFlow-enabled ports, the rates are listed as 0.
Port Sampling Rates The configured and actual sampling rates for each sFlow-enabled port. The subsampling factor indicates how many times the sampling rate of the port's module is multiplied to achieve the port's sampling rate. Because of the way in which the actual sampling rates are computed, the subsampling factors are always whole numbers.
Examples

The following is sample output from the show sflow command.

device# show sflow

sFlow version: 5
sFlow services are enabled.

sFlow agent IP address: 10.1.1.1
3 collector destinations configured:
Collector IP 10.2.2.2, UDP 6343
Collector IP 10.3.3.3, UDP 6343
Collector IP 10.4.4.4, UDP 6343
Configured UDP source port: 9999
Polling interval is 30 seconds.
Configured default sampling rate: 1 per 566 packe
Actual default sampling rate: 1 per 566 packets.
The maximum sFlow sample size: 1200.
Sample mode: All packets including dropped packet
exporting cpu-traffic is enabled.
exporting cpu-traffic sample rate: 18.
exporting system-info is enabled
exporting system-info polling interval: 30 second
22 UDP packets exported
0 sFlow flow samples collected.
sFlow ports: ethe 1/1/1 to 1/1/2
Module Sampling Rates
---------------------
U1:M1 configured rate=300, actual rate=300
Port Sampling Rates
-------------------
Port=1/1/1, configured rate=300, actual rate=300
Port=1/1/2, configured rate=400, actual rate=400