Configure sFlow polling and sampling on an interface

If the switch is configured as an sFlow agent, the switch can do the following:

  • Collect statistical packet-based sampling of switched flows and sends them to the configured receivers. A data source that is configured to collect flow samples is called a sampler.

  • Collect time-based sampling of network interface statistics and send them to the configured sFlow receivers. A data source configured to collect counter samples is called a poller.

You can configure sampling and a polling settings on a switch interface. Traffic on the interface is then sampled and polled and forwarded to the sFlow receiver.

To configure sFlow polling and sampling on an interface:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select Monitoring > sFlow > Advanced > sFlow Interface Configuration.

    The sFlow Interface Configuration page displays.

  3. Use one of the following methods to select an interface for the flow poller and sampler:
    • In the Go To Interface field, enter the interface in the unit/slot/port format and click on the Go button.

    • Next to the Interface column, select the check box for the interface that you want to use.

    You can select physical ports only.

  4. In the Poller Receiver Index field, specify the sFlow receiver that must be associated with the poller.

    For information about sFlow receivers, see Configure an sFlow receiver.

  5. In the Poller Interval field, specify the number of seconds between successive polling.

    A sampling interval of 0 disables sampling. The range is from 0 to 86400 seconds. The default is 0 seconds.

  6. In the Sampler Receiver Index field, specify the sFlow receiver that must be associated with the sampler.

    For information about sFlow receivers, see Configure an sFlow receiver.

  7. In the Sampling Rate field, specify the statistical sampling rate for packet sampling.

    A sampling rate of 1 counts all packets. A sampling rate of 0 disables sampling. The allowed range is 1024 to 65536. The default is 0.

  8. In the Maximum Header Size field, specify the maximum number of bytes to be copied from a sampled packet.

    The range is from 20 to 256 bytes. The default is 128 bytes.

  9. Click the Apply button.

    Your settings are saved.

  10. To save the settings to the running configuration, click the Save icon.