Reference Guide
sFlow | 1345
sflow collector
c e s
Configure a collector device to which sFlow datagrams are forwarded.
Syntax
sflow collector {ipv4-address | ipv6-address} agent-addr {ipv4-address | ipv6-address}
[number [max-datagram-size number]] | [max-datagram-size number]
Parameters
Defaults
Not configured
Command Modes
CONFIGURATION
Command
History
Usage
Information
You can configure up to two sFlow collectors (IPv4 or IPv6). If two collectors are configured, traffic
samples are sent to both.
The sFlow agent address is carried in a field in SFlow packets and is used by the collector to identify
the sFlow agent.
IPv6 sFlow collectors and agents are supported on E-Series (ExaScale and TeraScale), C-Series, and
S-Series routers.
To delete a configured collector, enter the no sflow collector {ipv4-address | ipv6-address}
agent-addr {ipv4-address | ipv6-address} [number [max-datagram-size number]] |
[max-datagram-size number] command.
sflow collector ipv4-address |
ipv6-address
Enter the IPv4 (A.B.C.D) or IPv6 address (X:X:X:X::X) of the
sFlow collector device.
agent-addr ipv4-address |
ipv6-address
Enter the IPv4 (A.B.C.D) or IPv6 address (X:X:X:X::X) of the
sFlow agent in the router.
number
(OPTIONAL) Enter the UDP port number (User Datagram
Protocol).
Range: 0 to 65535
Default: 6343
max-datagram-size number
(OPTIONAL) Enter the keyword max-datagram-size
followed by the size number in bytes.
Range: 400 to 1500
Default: 1400
Version 8.4.2.3 Support for IPv6 sFlow collectors and agents was added on the E-series TeraScale,
C-Series, and S-Series.
Version 8.4.1.1 Support for IPv6 sFlow collectors and agents was added on the E-series ExaScale.
Version 8.2.1.0 Introduces on S-Series Stacking
Version 8.1.1.0 Introduced on E-Series ExaScale
Version 7.7.1.0 Introduced on S-Series
Version 7.6.1.0 Introduced on C-Series
Version 6.5.1.0 Expanded the no form of the command to mirror the syntax used to configure
Version 6.2.1.1 Introduced on E-Series