Configuring the Packet Samples and Counter Samples

Configure the packet sampling rate to determine how many packets the system counts before it takes a sample and configure the counter sampling interval to determine how often the sFlow agent polls and exports counters for a configured interface. You can also configure the maximum header size on a single port or multiple ports.

Configuring the sampling rate enables sFlow on the port.

Before you begin

  • You must globally enable sFlow.

About this task

Tip

Tip

You can configure the Interfaces tab to select only the columns you are interested in seeing. By default, the Instances option does not appear. To make the Instances column visible, click the down arrow on one of the menu headings, navigate to Columns, and select the Instances check box.

Procedure

  1. In the navigation pane, expand the Configuration > Serviceability folders.
  2. Click Sflow.
  3. Click the Interfaces tab.
  4. In the DataSource column, navigate to the slot and port where you want to configure sFlow, and configure the following:
    1. PacketSamplingRate—Double-click the field, and enter a sampling rate value.
    2. MaximumHeaderSize—Double-click the field, and enter a maximum header size value.
    3. Interval—Double-click the field, and enter the counter sampling interval value in seconds.
  5. Click Apply.

Interfaces Field Descriptions

Use the data in the following table to use the Interfaces tab.

Name

Description

DataSource

Shows the slot and port for which traffic statistics are collected.

The field name is different on different hardware platforms.

Instance

Shows the number of sFlow samplers associated with a specific datasource.

Note:

You must select this field for it to display on the Interfaces tab.

Collectors

Shows the collectors that have been configured for the sFlow agent to send sFlow datagrams. Two collectors are supported.

The field name is different on different hardware platforms.

PacketSamplingRate

Specifies the packet sampling rate to determine how many packets the system counts before it take a sample.

The default is 0.

MaximumHeaderSize

Specifies the maximum header size on a single port or multiple ports.

The default is 128 bytes.

Interval

Specifies the counter sampling interval to determine how often the sFlow agent polls and exports counters for a configured interface.

The default is 0.