sflow receiver
To define the sFlow collector, use the sflow receiver Global Configuration mode command. To remove the definition of the collector, use the no form of this command.
Syntax
sflow receiver index {ipv4-address | ipv6-address | hostname} [port port] [max-datagram-size bytes]
no sflow receiver index
Parameters
-
index—The index of the receiver. (Range: 1–8)
-
ipv4-address—IPv4 address of the host to be used as an sFlow Collector.
-
ipv6-address—IPv6 address of the host to be used as an sFlow Collector. When the IPv6 address is a Link Local address (IPv6Z address), the outgoing interface name must be specified. Refer to the User Guidelines for the interface name syntax.
-
hostname—Hostname of the host to be used as an sFlow Collector.
-
port—(Optional) Port number for sflow messages. If unspecified, the port number defaults to 6343. The range is 1-65535.
-
bytes—(Optional) Specifies the maximum datagramsize that can be sent. If unspecified, it defaults to 1400.
Default
No receiver is defined.
Command Mode
Global Configuration mode
User Guidelines
If the IP address of the sFlow receiver is set to 0.0.0.0, no sFlow datagrams are sent.