3.2.21. sflow

SFlow configuration.

vrouter running config# vrf <vrf> sflow

enabled

Enable or disable the sFlow daemon for perf measurement.

vrouter running config# vrf <vrf> sflow
vrouter running sflow# enabled true|false
Default value
true

agent-interface

Use this interface IP in the reports sent to the collector.

vrouter running config# vrf <vrf> sflow
vrouter running sflow# agent-interface <string>

polling

Polling type (disabled or interval in seconds). Every interval, an sFlow frame containing interface statistics is sent to the collector.

vrouter running config# vrf <vrf> sflow
vrouter running sflow# polling POLLING
POLLING values Description
disabled Polling disabled.
<uint32> Polling interval in seconds.
Default value
disabled

sflow-collector

List of sFlow collectors.

vrouter running config# vrf <vrf> sflow
vrouter running sflow# sflow-collector <sflow-collector> port PORT
<sflow-collector> values Description
<A.B.C.D> An IPv4 address.
<X:X::X:X> An IPv6 address.
<host-name> The domain-name type represents a DNS domain name. Fully quallified left to the models which utilize this type. Internet domain names are only loosely specified. Section 3.5 of RFC 1034 recommends a syntax (modified in Section 2.1 of RFC 1123). The pattern above is intended to allow for current practice in domain name use, and some possible future expansion. It is designed to hold various types of domain names, including names used for A or AAAA records (host names) and other records, such as SRV records. Note that Internet host names have a stricter syntax (described in RFC 952) than the DNS recommendations in RFCs 1034 and 1123, and that systems that want to store host names in schema nodes using the domain-name type are recommended to adhere to this stricter standard to ensure interoperability. The encoding of DNS names in the DNS protocol is limited to 255 characters. Since the encoding consists of labels prefixed by a length bytes and there is a trailing NULL byte, only 253 characters can appear in the textual dotted notation. Domain-name values use the US-ASCII encoding. Their canonical format uses lowercase US-ASCII characters. Internationalized domain names MUST be encoded in punycode as described in RFC 3492.

port

The port number of the sFlow collector.

port PORT
PORT A 16-bit port number used by a transport protocol such as TCP or UDP.
Default value
6343

address (state only)

The address or hostname of the sFlow collector.

vrouter> show state vrf <vrf> sflow sflow-collector <sflow-collector> address

sflow-interface

List of sFlow interfaces.

vrouter running config# vrf <vrf> sflow
vrouter running sflow# sflow-interface <sflow-interface>
<sflow-interface> An interface name.

name (state only)

The interface to capture from.

vrouter> show state vrf <vrf> sflow sflow-interface <sflow-interface> name

sflow-sampling

List of sampling rate by interface speed.

vrouter running config# vrf <vrf> sflow
vrouter running sflow# sflow-sampling speed <sflow-sampling> rate RATE
<sflow-sampling> values Description
100M 100Mbps interface.
1G 1Gbps interface.
10G 10Gbps interface.
40G 40Gbps interface.
other Other speed interface.

rate

Sampling rate in number of packets. For better performance, it should be set to a power of two.

rate RATE
RATE values Description
auto Automatically derived from link speed.
<uint32> SFlow sampling rate.
Default value
auto

speed (state only)

Interface speed for which the sampling rate applies.

vrouter> show state vrf <vrf> sflow sflow-sampling speed <sflow-sampling> speed