sflow collector

Configures the forwarding of sFLow datagrams to collectors.

Syntax

sflow collector { IPv4address | IPv6address } [ use-vrf vrf-name ]
no sflow collector { IPv4address | IPv6address } [ use-vrf vrf-name ]

Parameters

IPv4address
Specifies an IPv4 address in dotted-decimal format for the collector.
IPv6address
Specifies an IPv6 address for the collector.
use-vrf vrf-name
Specifies a VRF through which to connect to the collector. See the Usage Guidelines.

Modes

Global configuration mode

Usage Guidelines

You can only specify up to five sFlow collectors; this includes all VRFs.

Use the no form of this command to reset the specified collector address to a null value.

By default, all management services are enabled on the management VRF ("mgmt-vrf") and the default VRF ("default-vrf").

Examples

To specify the sFlow collectors for an IPv4 address with the default port on the management VRF:

device# configure terminal
device(config)# sflow collector 192.10.138.176

To specify the sFlow collectors for an IPv4 address with a nondefault port on a user-specified VRF:

device# configure terminal
device(config)# sflow collector 192.10.138.176 50 use-vrf myvrf

To specify the sFlow collectors for an IPv6 address with a nondefault port on the management VRF:

device# configure terminal
device(config)# sflow collector 3ff3:1900:4545:3:200:f8ff:fe21:67cf:6343 50