sflow collector

Syntax

sflow collector <IP-ADDR> [port <PORT>] [vrf <VRF>]

no sflow collector <IP-ADDR> [port <PORT>] [vrf <VRF>]

Description

Defines a collector to which the sFlow agent sends data. Up to three collectors can be defined. At least one collector should be defined, and it must be reachable from the switch for sFlow to work.

Command context

config

Parameters

collector <IP-ADDR>

Specifies the IP address of a collector in IPv4 format (x.x.x.x), where x is a decimal number from 0 to 255, or IPv6 format (xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx), where x is a hexadecimal number from 0 to F.

port <PORT>
Specifies the UDP port on which to send information to the sFlow collector. Range: 0 to 65536. Default: 6343.
vrf <VRF>
Specifies the VRF on which to send information to the sFlow collector. The VRF must be defined on the switch. If no VRF is specified, the default VRF (default) is used.

Authority

Administrators or local user group members with execution rights for this command.

Example

Defining a collector with IP address 10.10.10.100 on UDP port 6400:

switch(config)# sflow collector 10.0.0.1 port 6400