Adding or Removing Additional Ports to sFlow Configuration


Based on your sampling requirements, you can add additional ports to the sFlow agent on each switch by using the command,


CLI (network-admin@switch) > sflow-port-add sflow-name name-string switch switch-name ports port-list


Specify the sflow selector:


sflow-name name-string

Specify the sFlow name.

Specify the following port arguments:


[switch switch-name]

Specify the switch name. This is a hidden option.

[ports port-list]

Specify the ports or range of ports.


For example, to add the ports, 61-62, to the sFlow configuration, use the following command on each switch:


CLI (network-admin@switch) >  sflow-port-add sflow-name net-monitor ports 61-62


To remove the additional ports from the sFlow configuration, use the sflow-port-remove command. For example,


CLI (network-admin@switch) >  sflow-port-remove sflow-name net-monitor ports 61-62