Configuring the sFlow Collector Destination
On Netvisor ONE switches, you must configure an sFlow Collector destination before configuring the sFlow Agent function. The sFlow Collector is the device that receives (“collects”) sFlow datagrams from the sFlow Agents.
To configure an sFlow Collector’s IP address and port, 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 of configuration of an sFlow Collector with IP address 10.10.10.12 using port 6343. The sFlow Collector’s instance name is sf_test, and the scope is fabric.
CLI (network-admin@switch) > sflow-collector-create collector-ip 10.10.10.12 collector-port 6343 name sf_test scope fabric
Note: You can add as many sFlow Collector instances as needed when deploying the sFlow feature in a data center.
To delete an already configured sFlow Collector instance, use the command:
CLI (network-admin@switch) > sflow-collector-delete name name-string
Note: When deleting the sFlow Collector instances, note that the last available Collector cannot be deleted if an sFlow Agent is still configured and available. That is, if you want to delete all sFlow Collector instances, you must first delete all the sFlow Agent instances before deleting the last available Collector.
To modify an already created sFlow Collector instance, 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 the configured sFlow Collector instances, 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. |
To view the details of the previously configured sFlow collector instances, use the command:
CLI (network-admin@switch) > sflow-collector-show
collector-ip collector-port name scope
------------ -------------- ---------- ------
10.10.10.12 6343 sf_test fabric
10.13.26.75 6343 sflow_collect local