beautypg.com

Configuring sflow for interfaces, Configuring sflow for, Interfaces – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 528

background image

For complete information on the sFlow CLI commands for the Brocade switch, refer to the Network OS
Command Reference
.

To configure sFlow globally, perform the following steps in global configuration mode.

1. Enter the configure terminal command to change to global configuration mode.

switch# configure terminal

2. Globally enable the sFlow protocol.

switch(config)# sflow enable

3. Designate the IP address (up to five addresses) for the sFlow collector server. Optionally, you can

designate the port number.

NOTE
Both IPv4 and IPv6 addresses are supported. However, each address must be entered individually
by means of a separate sflow collector command.

switch(config)# sflow collector 10.10.138.176 6343

switch(config)# sflow collector fd00::1900:4545:3:200:f8ff:fe21:67cf port 6343

switch(config)# sflow collector fd00::200:f8ff:fe21:67cf

4. Set the sFlow polling interval (in seconds).

switch(config)# sflow polling-interval 35

5. Set the sFlow sample-rate.

switch(config)# sflow sample-rate 4096

6. Return to privileged EXEC mode.

switch(config)# end

7. Confirm the sFlow configuration status by using the show sflow or show sflow all commands.

switch# show sflow

sFlow services are: enabled

Global default sampling rate: 32768 pkts

Global default counter polling interval: 20 secs

Collector server address Number of samples sent

------------------------ --------------------------------

fd00::1900:4545:3:200:f8ff:fe21:67cf 0

fd00::200:f8ff:fe21:67cf 0

10.10.138.176 0

switch# show sflow all

sFlow services are: enabled

Global default sampling rate: 32768 pkts

Global default counter polling interval: 20 secs

Collector server address Number of samples sent

------------------------ --------------------------------

fd00::1900:4545:3:200:f8ff:fe21:67cf:6343 0

fd00:fd00::200:f8ff:fe21:67cf: 0

10.10.138.176: 6343 0

8. Clear any existing sFlow statistics to ensure accurate readings.

switch# clear sflow statistics

Configuring sFlow for interfaces

After the global sFlow configuration, sFlow must be explicitly enabled on all the required interface
ports.

NOTE
When sFlow is enabled on an interface port, it inherits the sampling rate and polling interval from the
global sFlow configuration.

Configuring sFlow for interfaces

528

Network OS Administrator’s Guide

53-1003225-04