Configure Netflow

Set the timeout for when we want NetFlow configuration to expire (never, so a large number is set).

Enable polling and sampling on all interfaces for which we want to collect flow.

Commit these changes to memory.

For the second line of configuration, you need to pre-determine the port address range for which you’d like to export flow. For example, if you’re going to monitor your switch’s uplink port, ge-0/0/0, you’d enter “set sflow interfaces ge-0/0/0”. Rinse and repeat that command to configure each additional interface for which you’d like to monitor flow.