beautypg.com

Changing the polling interval, Changing the sampling rate – Brocade TurboIron 24X Series Configuration Guide User Manual

Page 279

background image

Brocade TurboIron 24X Series Configuration Guide

245

53-1003053-01

sFlow

The sampled sFlow data sent to the collectors includes an agent_address field. This field identifies
the device that sent the data. Refer to

“Source address”

on page 243.

IPv6 devices
To specify an sFlow collector on an IPv6 device, enter a command such as the following.

TurboIron(config)#sflow destination ipv6 2003:0:0::0b:02a

This command specifies a collector with IPv6 address 2003:0::0b:02a, listening for sFlow data on
UDP port 6343.

Syntax: [no] sflow destination ipv6 []

The parameter specifies the IP address of the collector.

The parameter specifies the UDP port on which the sFlow collector will be listening
for exported sFlow data. The default port number is 6343.

If the IPv6 address you specify is a link-local address on a Layer 3 switch, you must also specify the
outgoing-interface ethernet or the ve . This identifies the outgoing
interface through which the sampled packets will be sent.

The sampled sFlow data sent to the collectors includes an agent_address field. This field identifies
the device that sent the data. Refer to

“Source address”

on page 243.

Changing the polling interval

The polling interval defines how often sFlow byte and packet counter data for a port are sent to the
sFlow collectors. If multiple ports are enabled for sFlow, the device staggers transmission of the
counter data to smooth performance. For example, if sFlow is enabled on two ports and the polling
interval is 20 seconds, the device sends counter data every ten seconds. The counter data for one
of the ports are sent after ten seconds, and counter data for the other port are sent after an
additional ten seconds. Ten seconds later, new counter data for the first port are sent. Similarly, if
sFlow is enabled on five ports and the polling interval is 20 seconds, the device sends counter data
every four seconds.

The default polling interval is 20 seconds. You can change the interval to a value from 1 to any
higher value. The interval value applies to all interfaces on which sFlow is enabled. If you set the
polling interval to 0, counter data sampling is disabled.

To change the polling interval, enter a command such as the following at the global CONFIG level of
the CLI.

TurboIron(config)#sflow polling-interval 30

Syntax: [no] sflow polling-interval

The parameter specifies the interval and can be from 1 to any higher value. The default is
20 seconds. If you specify 0, counter data sampling is disabled.

Changing the sampling rate

The sampling rate is the average ratio of the number of packets incoming on an sFlow-enabled
port, to the number of flow samples taken from those packets.

You can change the default (global) sampling rate. You also can change the rate on an individual
port, overriding the default sampling rate of 512. With a sampling rate of 512, on average, one in
every 512 packets forwarded on an interface is sampled.