Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

ovs-vsctl -- --id=@s create sFlow agent=<agent> target=<target>[,<target>,...] header=<header> samping=<samping> polling=<polling> -- set Bridge <bridge> sflow=@s

PicOS OVS supports sFlow v5.
Example:

admin@PicOS-OVS$ovs-vsctl -- --id=@s create sFlow agent=eth0 target=\"10.10.50.207:9901\" header=128 sampling=2000 polling=30 -- set Bridge br0 sflow=@s
In the above CLI, the parameters are shown as following: 
COLLECTOR_IP=10.10.50.207
COLLECTOR_PORT=9901
AGENT_IP=eth0
HEADER_BYTES=128
SAMPLING_N=64
POLLING_SECS=10

ovs-vsctl – clear Bridge <bridge> sflow

Delete sFlow from sFlow table.
Example:
Clear sFlow from sFlow table in bridge br0.

admin@PicOS-OVS$ovs-vsctl -- clear Bridge br0 sflow

 

Troubleshoot the configuration

admin@5712$ovs-vsctl list sflow
_uuid               : 3362a543-4a1a-47db-898a-0ec0eddb7aa0
agent               : "eth0"
external_ids        : {}
header              : 128
polling             : 30
sampling            : 2000
targets             : ["172.16.0.173:8008"]
  • No labels