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
You can configure the Interfaces tab to select only the columns you are interested in seeing. By default, the system does not display Instances option. 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
- In the navigation pane, expand the folders.
- Click Sflow.
- Click the Interfaces tab.
-
In the DataSource
column, navigate to the slot and port where you want to configure sFlow, and
configure the following:
- PacketSamplingRate—Double-click the field, and enter a sampling rate value.
- MaximumHeaderSize—Double-click the field, and enter a maximum header size value.
- Interval—Double-click the field, and enter the counter sampling interval value in seconds.
- 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. |