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 destination, and extended flow types (BGP, switch).
Diagram
Section titled “Diagram”Classes
Section titled “Classes”configuration (nxos.devices)
Section titled “configuration (nxos.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| sflow | Class | [sflow] | No |
sflow (nxos.devices.configuration)
Section titled “sflow (nxos.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| agent_address | String | No | ||
| collector_address | String | No | ||
| collector_port | Integer | min: 1, max: 65535 | No | |
| collector_source | String | No | ||
| collector_vrf | String | No | ||
| counter_poll_interval | Integer | min: 0, max: 2147483647 | No | |
| extended_bgp | Boolean | true, false | No | |
| extended_switch | Boolean | true, false | No | |
| max_datagram_size | Integer | min: 200, max: 9000 | No | |
| max_header_size | Integer | min: 64, max: 256 | No | |
| sampling_rate | Integer | min: 0, max: 4294967295 | No |
Examples
Section titled “Examples”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: managementExample 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