3.2.33. sflow

Note

requires a Product License.

SFlow configuration.

vsr running config# vrf <vrf> sflow

enabled (pushed)

Enable or disable the sFlow daemon for perf measurement.

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

agent-interface

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

vsr running config# vrf <vrf> sflow
vsr 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.

vsr running config# vrf <vrf> sflow
vsr running sflow# polling POLLING

POLLING values

Description

disabled

Polling disabled.

<uint32>

Polling interval in seconds.

Default value
disabled

sflow-port

The port number to receive sFlow sample from 6WIND products.

vsr running config# vrf <vrf> sflow
vsr running sflow# sflow-port SFLOW-PORT

SFLOW-PORT

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

Default value
36343

if-error

Force the output ifindex value used for drop packets.

vsr running config# vrf <vrf> sflow
vsr running sflow# if-error IF-ERROR

IF-ERROR values

Description

1073741823

Last index 0x3FFFFFFF.

1073741824

Generic error 0x40000000.

<0-3221225471>

No description.

if-unknown

Force the output ifindex value used for packets where the output is not known.

vsr running config# vrf <vrf> sflow
vsr running sflow# if-unknown IF-UNKNOWN

IF-UNKNOWN values

Description

1073741823

Last index 0x3FFFFFFF.

0

Generic error 0.

<0-3221225471>

No description.

sflow-collector

List of sFlow collectors.

vsr running config# vrf <vrf> sflow
vsr running sflow# sflow-collector <sflow-collector> port PORT source-ip SOURCE-IP

<sflow-collector> values

Description

<ipv4-address>

The ipv4-address type represents an IPv4 address in dotted-quad notation. The IPv4 address may include a zone index, separated by a % sign. The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used. The canonical format for the zone index is the numerical format

<ipv6-address>

The ipv6-address type represents an IPv6 address in full, mixed, shortened, and shortened-mixed notation. The IPv6 address may include a zone index, separated by a % sign. The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used. The canonical format of IPv6 addresses uses the textual representation defined in Section 4 of RFC 5952. The canonical format for the zone index is the numerical format as described in Section 11.2 of RFC 4007.

<domain-name>{1,253}

The domain-name type represents a DNS domain name. The name SHOULD be fully qualified whenever possible. 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. The description clause of schema nodes using the domain-name type MUST describe when and how these names are resolved to IP addresses. Note that the resolution of a domain-name value may require to query multiple DNS records (e.g., A for IPv4 and AAAA for IPv6). The order of the resolution process and which DNS record takes precedence can either be defined explicitly or may depend on the configuration of the resolver. Domain-name values use the US-ASCII encoding. Their canonical format uses lowercase US-ASCII characters. Internationalized domain names MUST be A-labels as per RFC 5890.

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

source-ip

The source IP address used in packets sent to the collector. The address must be a valid address on one of the host’s network interfaces.

source-ip SOURCE-IP

SOURCE-IP values

Description

<ipv4-address>

An IPv4 address.

<ipv6-address>

An IPv6 address.

sflow-interface

List of sFlow interfaces.

vsr running config# vrf <vrf> sflow
vsr running sflow# sflow-interface <sflow-interface>

<sflow-interface>

An interface name.

sflow-sampling

List of sampling rate by interface speed.

vsr running config# vrf <vrf> sflow
vsr running sflow# sflow-sampling speed <sflow-sampling> rate RATE

<sflow-sampling> values

Description

<vrouter-sflow-sampling-type-custom>

Custom speed interfaces with the xxx[M|G] format.

100M

100Mbps interface.

1G

1Gbps interface.

10G

10Gbps interface.

40G

40Gbps interface.

100G

100Gbps interface.

other

Interface with no speed.

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