Unfortunately, at this point, sFlow is something that our VIRL lab devices do not support. You can either use a Cisco Nexus 3000 switch or other vendor switches, such as Arista, that support sFlow. Another good option for the lab is to use an Arista vEOS virtual manager. I happen to have Cisco Nexus 3048 switches running 7.0 (3) that I will be using for this section.
The configuration of Cisco Nexus 3000 for sFlow is straightforward:
Nexus-2# sh run | i sflowfeature sflowsflow max-sampled-size 256sflow counter-poll-interval 10sflow collector-ip 192.168.199.185 vrf managementsflow agent-ip 192.168.199.148sflow data-source interface Ethernet1/48
The easiest way to utilize sFlow is to use sflowtool. Refer to ...