Configuring sFlow The following sFlow commands allow you to configure sFlow instances via the CLI.
— Command ————————————
[no] sflow <receiver-instance> destination <ip-address> [udp-port-num]
Enables an sFlow receiver/destination. The receiver-instance number must be a 1, 2, or 3. By default, the udp destination port number is 6343.
To disable an sFlow receiver/destination, enter no sflow <receiver-instance>.
— Command ———————————-
sflow <receiver-instance> sampling <port-list> <sampling rate>
Once an sFlow receiver/destination has been enabled, this command enables flow sampling for that instance. The receiver-instance number is 1, 2, or 3, and the sampling rate is the allowable non-zero skipcount for the specified port or ports. To disable flow-sampling for the specified port-list, repeat the above command with a sampling rate of “0”.
— Command ————————————-
sflow <receiver-instance> polling <port-list> <polling interval>
Once an sFlow receiver/destination has been enabled, this command enables counter polling for that instance. The receiver-instance number is 1, 2, or 3, and the polling interval may be set to an allowable non-zero value to enable polling on the specified port or ports.
(config)# sflow 1 destination 10.1.2.5 6343
(config)# sflow 1 sampling ethernet A1-A24 128
(config)# sflow 1 polling ethernet A1-A24 30
To View counter-polling
Viewing sFlow Configuration and Status The following sFlow commands allow you to display sFlow configuration and status via the CLI.
— Command ————————————–
show sflow agent
Displays sFlow agent information. The agent address is normally the ip address of the first vlan configured.
— Command —————————————
show sflow <receiver instance> destination
Displays information about the management station to which the sFlow samplingpolling data is sent.
— Command —————————————–
show sflow <receiver instance> sampling-polling <port-list/range>
Displays status information about sFlow sampling and polling.
To Remove counter-polling
Remove sflow Polling from a Port
— Command ———————–
sflow 1 polling <Port Number> 0
Remove sflow Sampling from a Port
sflow 1 sampling <Port Number> 0