Configuring sFlow

sFlow is a multi-vendor, packet sampling technology used to monitor network devices including routers, switches, host devices and wireless access points. Flow Monitor traffic monitoring software uses the sFlow data to analyze and manage network traffic and to ensure Quality of Service.

sFlow sampling process is performed by the switching/routing ASICs, thereby ensuring wire-speed performances. The sFlow agent then combines the interface counters, flow samples and the forwarding/routing table state associated with each packet into a UDP sFlow datagram. This is then sent to the sFlow collector for collection and analysis.

Enable sFlow Feature

Reference

Command

feature sflow no feature sflow

Description

Enable/disable sFlow feature

Mode

CONFIG

Example

pbnoscli(config)# feature sflow 
pbnoscli(config)# no feature sflow coll

sFlow Collector

Reference

Command

sflow collector <name> <ipaddr> no sflow collector <name> <ipaddr>

Description

Enable/disable sFlow collector configuration

Mode

CONFIG

Example

pbnoscli(config)# sflow collector Collector1 10.2.2.7
pbnoscli(config)# no sflow collector Collector1 10.2.2.7

sFlow Polling-Interval

Reference

Command

sflow polling-interval <interval (0..300)> no sflow collector <interval (0..300)>

Description

Enable/disable sFlow polling-interval

Mode

CONFIG

Example

pbnoscli(config)# sflow polling-interval 20
pbnoscli(config)# no sflow polling-interval 20

Enable sFLow

Reference

Command

sflow enable

Description

Enable/disable sFlow per interface

Mode

INTERFACE

Example

pbnoscli(config-if)# sflow enable
pbnoscli(config-if)# no sflow enable

sFlow Sampling Rate

Reference

Command

sflow sampling-rate <rate(256..8388608)>

Description

Enable/disable sFlow sampling rate

Mode

INTERFACE

Example

pbnoscli(config-if)# sflow sampling-rate 256
pbnoscli(config-if)# no sflow sampling-rate 256

Show sFlow Command

Reference

Command

sflow ("Sflow related information") [interface ("Specific to an interface") <ifname:string interface_list()> ("Interface name")], showsflow();

Description

sFlow related information

Example

pbnoscli# show sflow
sFlow Admin State: up
sFlow polling-interval: 20
Collector name: Collector1
sFlow collector-ip: 10.2.2.7
sFlow collector-port: 6343

Interface     State     Sampling Rate
=====================================
Ethernet116       up      256
Ethernet128       up      256
pbnoscli#