Skip to content

Instantly share code, notes, and snippets.

@pichuang
Created April 26, 2014 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pichuang/11332074 to your computer and use it in GitHub Desktop.
Save pichuang/11332074 to your computer and use it in GitHub Desktop.
set ovs-sflow config
#/bin/bash
COLLECTOR_IP=
COLLECTOR_PORT=
AGENT=
HEADER=128
SAMPLING=512
POLLING=10
BRIDGE_NAME=
sudo ovs-vsctl -- --id=@sflow create sflow agent=${AGENT} \
target=\"${COLLECTOR_IP}:${COLLECTOR_PORT}\" header=${HEADER} \
sampling=${SAMPLING} polling=${POLLING} \
-- set bridge ${BRIDGE_NAME} sflow=@sflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment