3.34.2 sFlow Port Configuration

Use this command to enable/disable flow sampling and counter polling on the specific port, specify sampling rate, maximum header size, and poling interval.

Command Syntax:

sflow 
sflow sampling-rate <sampling_rate>
sflow max-sampling-size <max_sampling_size>
sflow counter-poll-interval <poll_interval>
Table 3-137. Command Description

Argument

Description

Parameter

<sampling_rate>

The sample rate is specified as N to sample 1/Nth of the packets n the monitored flows. Valid range is from 1 to 4096.

<max_sampling_size>

The maximum number of bytes to transmit per flow sample. Valid range is 14 to 200 bytes with default 128 bytes.

<poll_interval>

Specifies the interval in seconds between counter poller samples. Valid range is from 1 to 3600 seconds.

Default

N.A.

Mode

Port List Interface mode

Usage

Enable flow sampling and specify parameters. To disable the flow sampling or revert parameters to the defaults, use the ‘no’ version of the command.

Example

Example 1:

Enable sFlow sampling on port 1 with sampling rate 400.

(config)# interface GigabitEthernet 1/1
(config-if)# sflow
(config-if)# sflow sampling-rate 400