Command Line Reference Guide
sflow collector
Configure a collector device to which sFlow datagrams are forwarded.
S5000
Syntax
sflow collector {ipv4-address | ipv6-address} agent-addr {ipv4-
address | ipv6-address} [number [max-datagram-size number]] |
[max-datagram-size number]
To delete a configured collector, use the no sflow collector {ipv4-address |
ipv6-address} agent-addr {ipv4-address | ipv6-address} [number
[max-datagram-size number]] | [max-datagram-size number] command.
Parameters
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 user datagram protocol (UDP) port number. The
range is 0 to 65535. The default is 6343.
max-datagram-
size
number
(OPTIONAL) Enter the keyword max-datagram-size followed by the
size number in bytes. The range is 400 to 1500. The default is 1400.
Defaults Not configured.
Command Modes CONFIGURATION
Command History
Version 9.0(1.3) Introduced on the S5000.
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 the S5000 switch.
As part of the sFlow-MIB, if the SNMP request originates from a configured collector, FTOS
returns the corresponding configured agent IP in the MIB requests. FTOS checks to ensure
that two entries are not configured for the same collector IP with a different agent IP. Should
that happen, FTOS generates the following error: %Error: Different agent-addr
attempted for an existing collector
.
1182