Brocade Communications Systems Brocade ICX 6650 User Manual

Page 279

Advertising
background image

Brocade ICX 6650 Administration Guide

261

53-1002600-01

sFlow

11

When you enable sFlow on a port, the port's sampling rate is set to the global default sampling rate.
This also applies to ports on which you disable and then re-enable sFlow. The port does not retain
the sampling rate it had when you disabled sFlow on the port, even if you had explicitly set the
sampling rate on the port.

Changing the default sampling rate
To change the default (global) sampling rate, enter a command such as the following at the global
CONFIG level of the CLI.

Brocade(config)#sflow sample 2048

Syntax: [no] sflow sample <num>

The <num> parameter specifies the average number of packets from which each sample will be
taken. The software rounds the value you enter to the next higher odd power of 2. This value
becomes the actual default sampling rate and is one of the following:

2

8

32

128

512

2048

4096

8192

32768

131072

524288

2097152

8388608

33554432

134217728

536870912

2147483648

For example, if the configured sampling rate is 1000, then the actual rate is 2048 and 1 in 2048
packets are sampled by the hardware.

Changing the sampling rate of a module
You cannot change a module sampling rate directly. You can change a module sampling rate only
by changing the sampling rate of a port on that module.

Changing the sampling rate on a port
You can configure an individual port to use a different sampling rate than the global default
sampling rate. This is useful in cases where ports have different bandwidths. For example, if you
are using sFlow on 10/100 ports and Gbps Ethernet ports, you might want to configure the Gbps
ports to use a higher sampling rate (and thus gather fewer samples per number of packets) than
the 10/100 ports.

Advertising