Ask Your Question
0

how to configure Flexible NetFlow(or Sflow) on OVS) on ovs

asked 2015-10-19 07:51:35 -0600

Veerendra gravatar image

How to configure Collector and Exporter to get the Netflow on OVS.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-10-23 07:16:50 -0600

Vinoth gravatar image

We could directly set enable sFlow and its collector configuration on OVS using CLI but it is little messy. So I make use of hsflow module, This will take care of collector info and will send all system info (including OVS) to the sFlow collector.

Enabling sFlow on OVS:

Install sFlow collector on any machine. ( I prefer sFlow-RT)

Install hsflowd (host sflow module to collect host info) download link here

Edit the Host sFlow agent configuration file, /etc/hsflowd.conf, on each Linux server:

sflow{
  DNSSD = off
  polling = 20
  sampling = 512
  collector{
   ip = 10.0.0.50 #sflow collector IP
   udpport = 6343
  }
}

service hsflowd restart #starting host sflow module

service sflowovsd start #enabling sFlow on OVS.

That's it, all done. Now you could see the all OVS info on your sflow collector.

edit flag offensive delete link more
0

answered 2015-12-21 23:53:10 -0600

Veerendra gravatar image

updated 2015-12-21 23:57:03 -0600

Another way to configure sFlow:

COLLECTOR_IP=192.168.44.49
COLLECTOR_PORT=6343 
AGENT_IP=localhost
HEADER_BYTES=128
SAMPLING_N=64
POLLING_SECS=10

ovs-vsctl -- --id=@sflow create sflow agent=${AGENT_IP} \
target=\"${COLLECTOR_IP}:${COLLECTOR_PORT}\" header=${HEADER_BYTES} \
sampling=${SAMPLING_N} polling=${POLLING_SECS} -- set bridge br-int sflow=@sflow

To remove sFlow use following command:

ovs-vsctl remove bridge <BRIDGE NAME> sflow <sFlow UUID>

To view sFlow configuration:

 ovs-vsctl list sflow

Here is the some sFlow Collectors(GUI): Here

If you want a tool like "nfdump"(Analyzer Tool for Netflow), you can use this: http://blog.sflow.com/2011/12/sflowto...

http://blog.sflow.com/2012/01/forward...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-10-19 07:51:35 -0600

Seen: 1,253 times

Last updated: Dec 21 '15