Skip to content

sFlow

sFlow configuration manages global sFlow sampling and collector settings on NX-OS devices. Settings include agent address, sampling rate, header size, counter polling interval, collector receivers, and extended flow types (BGP, switch).

Diagram
NameTypeConstraintMandatoryDefault Value
sflowClass[sflow]No

NameTypeConstraintMandatoryDefault Value
agent_ipStringNo
collector_portIntegermin: 1, max: 65535No
collectorsList[collectors]No
counter_poll_intervalIntegermin: 0, max: 2147483647No
extended_bgpBooleantrue, falseNo
extended_switchBooleantrue, falseNo
max_datagram_sizeIntegermin: 200, max: 9000No
max_sampled_sizeIntegermin: 64, max: 256No
sampling_rateIntegermin: 0, max: 4294967295No

collectors (nxos.devices.configuration.sflow)

Section titled “collectors (nxos.devices.configuration.sflow)”
NameTypeConstraintMandatoryDefault Value
addressStringYes
vrfStringNo
source_addressStringNo

Example 1: Basic sFlow with a single collector

nxos:
devices:
- name: LEAF1
configuration:
feature:
sflow: true
sflow:
agent_ip: 10.0.0.1
sampling_rate: 4096
collector_port: 6343
collectors:
- address: 10.92.198.113
vrf: management

Example 2: sFlow with multiple collectors and tuned parameters

nxos:
devices:
- name: LEAF1
configuration:
feature:
sflow: true
sflow:
agent_ip: 172.24.141.69
counter_poll_interval: 30
max_sampled_size: 128
max_datagram_size: 1400
sampling_rate: 2048
collector_port: 2055
extended_bgp: true
extended_switch: true
collectors:
- address: 10.92.198.113
vrf: management
source_address: 10.0.0.1
- address: 10.92.198.114
vrf: management
source_address: 10.0.0.1

sFlow configuration manages global sFlow sampling and collector settings on NX-OS devices. Settings include agent address, sampling rate, header size, counter polling interval, collector destination, and extended flow types (BGP, switch).

Diagram
NameTypeConstraintMandatoryDefault Value
sflowClass[sflow]No

NameTypeConstraintMandatoryDefault Value
agent_addressStringNo
collector_addressStringNo
collector_portIntegermin: 1, max: 65535No
collector_sourceStringNo
collector_vrfStringNo
counter_poll_intervalIntegermin: 0, max: 2147483647No
extended_bgpBooleantrue, falseNo
extended_switchBooleantrue, falseNo
max_datagram_sizeIntegermin: 200, max: 9000No
max_header_sizeIntegermin: 64, max: 256No
sampling_rateIntegermin: 0, max: 4294967295No

Example 1: Basic sFlow with collector

nxos:
devices:
- name: LEAF1
configuration:
feature:
sflow: true
sflow:
agent_address: 10.0.0.1
sampling_rate: 4096
collector_address: 10.92.198.113
collector_port: 6343
collector_vrf: management

Example 2: sFlow with extended flow types and tuned parameters

nxos:
devices:
- name: LEAF1
configuration:
feature:
sflow: true
sflow:
agent_address: 172.24.141.69
counter_poll_interval: 30
max_header_size: 128
max_datagram_size: 1400
sampling_rate: 2048
extended_bgp: true
extended_switch: true
collector_address: 10.92.198.113
collector_port: 2055
collector_source: 10.0.0.1
collector_vrf: management