Connectivity Guide

sow collector
Congures an sFlow collector IP address where sFlow datagrams are forwarded. You can congure a maximum of two collectors.
Syntax
sflow collector {ipv4-address | ipv6-address} agent-addr {ipv4-address | ipv6-
address} [collector-port-number] [vrf vrf-name]
Parameters
ipv4-address | ipv6-address — Enter an IPv4 or IPv6 address in A.B.C.D/A::B format.
agent-addr ipv4-address | ipv6-address — Enter the sFlow agent IP address. If you congure
two collectors, the agent IP address must be the same for both the collectors.
collector-port-number — (Optional) Enter the UDP port number, from 1 to 65535. The default is
6343.
vrf — (Optional) Enter the VRF instance to set the VRF context to the collector IP address. If you do not
specify a VRF, the system uses the default VRF.
Defaults Not congured
Command Modes CONFIGURATION
Usage Information
You must enter a valid and reachable IPv4 or IPv6 address. If you congure two collectors, trac samples are sent
to both. The sFlow agent address is the IPv4 or IPv6 address used to identify the agent to the collector. The no
version of this command removes the congured sFlow collector.
If you specify a nondefault VRF, create the VRF rst.
Example
OS10(conf)# sflow collector 10.1.1.1 agent-addr 2.2.2.2 6343vrf default
OS10(conf)# sflow collector 10.1.1.1 agent-addr 2.2.2.2 6343vrf vrf-core
Supported Releases 10.3.0E or later. Updated the command to specify a nondefault VRF on OS10 release 10.4.3.0 or later
sow enable
Enables sFlow on a specic interface or globally on all interfaces.
Syntax
sflow enable [all-interfaces]
Parameters all-interfaces — (Optional) Enter to enable sFlow globally.
Default Disabled
Command Mode CONFIGURATION
Usage Information
The no version of this command to disables sFlow.
Example (interface)
OS10(config)# sflow enable
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# sflow enable
Example (interface
range)
OS10(config)# sflow enable
OS10(config)# interface range ethernet 1/1/1-1/1/10
OS10(conf-range-eth1/1/1-1/1/10)# sflow enable
sFlow 1125