Management and Configuration Guide K/KA/KB.15.15

Configuring sFlow
The following sFlow commands allow you to configure sFlow instances via the CLI.
Syntax
[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.
Syntax
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.
Syntax
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.
To disable counter-polling for the specified <port-list>, repeat the above command with a
polling interval of 0.
NOTE: Under the multiple instance implementation, sFlow can be configured via the CLI or via
SNMP. However, CLI-owned sFlow configurations cannot be modified via SNMP, whereas
SNMP-owned instances can be disabled via the CLI using the no sflow <receiver-instance>
command.
Syntax
[no] sflow receiver-instance destination <ipv4 | ipv6>udp-port-numoobm
This command provides a configurable option for sending sFlow packets to a destination through
the OOBM port on the switch. The sFlow collector collects sample packets through the OOBM
port, allowing the monitoring of network traffic. Both IPv4 and IPv6 addresses are supported.
The command 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>
oobm: Use the OOBM port to reach the specified sFlow receiver.
Configuring sFlow 217