Configuring the sFlow Collector


You must configure sFlow Collector before configuring the sFlow Agents. The sFlow Collector receives sFlow Datagrams or packets 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 IP address of the sFlow Collector.

collector-port collector-port-number

Specify the port number assigned to the sFlow Collector.

name name-string

Specify a name for the sFlow.

scope local|fabric

Specify if the scope is local or fabric. 


Note: If the scope is fabric, then the new 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.



Below is an example configuration of an sFlow Collector with IP address  10.10.10.12, on  port  2055. The Collector name is sf_test, and the scope is fabric


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



Note: You can add as many Collectors as needed while configuring the sFlow monitoring system in a datacenter.



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


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


Note: While deleting the sFlow Collectors, note that the last available Collector cannot be deleted if an sFlow is still configured and available. That is, if you want to delete all sFlow Collectors, you must first delete all the sFlows before deleting the last available Collector.


To modify an already created sFlow Collector, use the command:


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


name name-string

Specify the name of the sFlow you want to modify.

Specify one or more of the following options:


collector-ip ip-address

Specify the change in IP address for the sFlow Collector.

collector-port collector-port-number

Specify the change in  port number for the sFlow Collector.


Note: You cannot modify the scope parameter once the sFlow Collector is configured.


To view the details of 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

Specify to display the details of the sFlow Collector.

collector-port collector-port-number

Specify to display the details.

name name-string

Specify to display the details of the specified sFlow.

scope local|fabric

Specify to display the details of either the local scoped or fabric scoped sFlow Collectors.


For example, to view the details of a previously configured sFlow collector,  use the command:


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


collector-ip collector-port name               scope  

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

10.10.10.12      2055       sf_test       fabric 

10.13.26.75      6343       sflow_collect local


north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south