I'm trying to monitor my OpenVswitch via IPFix. But I'm banging my head against a brick wall for two days now :/
According to the ovs-vsctl manpage I need to add a new entry into the config-database, more precisely into the "ipfix"-table. That worked pretty well, and it looks like I got it right:
# ovs-vsctl list ipfix
_uuid : 2d54982b-6cc5-4a8c-845c-cc7ef701da01
external_ids : {}
obs_domain_id : 123
obs_point_id : 456
sampling : 64
targets : ["<collector-ip>:<port>"]
I then downloaded libIPFIX and started the example_collector. But nothing shows up. I don't receive any information. I confirmed it using wireshark ...
Some Google-Research brought up an eMail from the Mailinglist, which states that one needs
OpenFlow actions to cause IPFIX to be sent to the collectors
According to this eMail there are new "sample actions", but I couldn't find any further information how to add them.
My best guess is that I'm missing these OpenFlow Sample-Actions. Can anybody provide me with information how to add those?
/edit: I'm running OpenVswitch Version 1.11.0 on openSUSE 13.1 (x86_64).
To get IPFix to work I tried the following:
# ovs-vsctl -- set Bridge s1 ipfix=@i -- --id=@i create IPFIX targets=\"10.0.0.1:4739\" obs_domain_id=123 obs_point_id=456 sampling=64
2d54982b-6cc5-4a8c-845c-cc7ef701da01
To confirm that I did the ovs-vsctl list ipfix (see above)
A similar command worked as expected to get sFlow to work:
# ovs-vsctl -- set Bridge s1 sflow=@sflow -- --id=@sflow create sflow agent=eth0 target=\"10.0.0.1:6343\" header=128 sampling=32 polling=2
0df2b92b-8a83-4a63-acc4-fecf6f8f492f
Right after entering that line, I got sampling results send to my target computer. Unfortunately no luck with IPFix.