Configuring the sFlow Collector


You must configure sFlow collector before configuring the sFlow agents. The sFlow collector receives sFlow datagrams from the sFlow agents.


To configure a sFlow collector, use the command:


CLI (network-admin@switch) > sflow-collector-create collector-ip ip-address collector-port collector-port-number name name-string scope local|fabric


collector-ip ip-address

Specify the sFlow collector IP address.

collector-port collector-port-number

Specify the sFlow collector port.

name name-string

Specify a name for the sFlow.

scope local|fabric

Specify if the scope is local or fabric.


Below is an example configuring an sFlow collector with IP address  10.10.10.12, on  port  2055. The collector name is sf_collector, and the scope is fabric.


Note: If the scope is fabric, then additional switches that join the fabric receive the sFlow collector configuration. If the scope is local, then the sFlow collector is configured only on the local switch.


CLI (network-admin@switch) > sflow-collector-create collector-ip 10.10.10.12 collector-port 2055 name sf_collector scope fabric


Note: You can add as many collectors as needed for your configuration.


To delete an already configured sFlow collector, use the command:


CLI (network-admin@switch) > sflow-collector-delete name name-string 


To view the details of the existing sFlow collectors, use the sflow-collector-show command specifying one or more of the following options:


CLI (network-admin@switch) > sflow-collector-show  


Specify one of more of the following options:


collector-ip ip-address

Displays the sFlow collector IP address.

collector-port collector-port-number

Displays the sFlow collector port.

name name-string

Displays the sFlow name.  

scope local|fabric

Displays the scope of the sFlow collector.


For example, to view the details of the previously configured sFlow collector,


CLI (network-admin@switch) > sflow-collector-show


collector-ip collector-port name             scope  

------------ -------------- ----------   ------

10.10.10.12      2055       sf_collector   fabric

10.13.26.75      6343       sflow_collect  local