sFlow
NX-OSsFlow 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, data source interfaces, and extended flow types (BGP, switch).
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
Section titled “Diagram”Diagram
Section titled “Diagram”Classes
Section titled “Classes”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| devices | List | devices | No | |
| device_groups | List | device_groups | No | |
| global | Class | global | No | |
| templates | List | templates | No |
devices (nxos)
Section titled “devices (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
device_groups (nxos)
Section titled “device_groups (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
global (nxos)
Section titled “global (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
templates (nxos)
Section titled “templates (nxos)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
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_ip | IP | No | ||
| collector_port | Integer | min: 1, max: 65535 | No | |
| collectors | List | collectors | No | |
| counter_ | Integer | min: 0, max: 2147483647 | No | |
| extended_bgp | Boolean | true, false | No | |
| extended_switch | Boolean | true, false | No | |
| max_ | Integer | min: 200, max: 9000 | No | |
| max_ | Integer | min: 64, max: 256 | No | |
| sampling_rate | Integer | min: 0, max: 4294967295 | No | |
| data_ | List | data_ | No |
sflow (nxos.devices.configuration)
Section titled “sflow (nxos.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| agent_ip | String | No | ||
| collector_port | Integer | min: 1, max: 65535 | No | |
| collectors | List | collectors | No | |
| counter_ | Integer | min: 0, max: 2147483647 | No | |
| extended_bgp | Boolean | true, false | No | |
| extended_switch | Boolean | true, false | No | |
| max_ | Integer | min: 200, max: 9000 | No | |
| max_ | Integer | min: 64, max: 256 | No | |
| sampling_rate | Integer | min: 0, max: 4294967295 | No |
collectors (nxos.devices.configuration.sflow)
Section titled “collectors (nxos.devices.configuration.sflow)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| address | IP | Yes | ||
| vrf | String | No | ||
| source_address | IP | No |
collectors (nxos.devices.configuration.sflow)
Section titled “collectors (nxos.devices.configuration.sflow)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| address | String | Yes | ||
| vrf | String | No | ||
| source_address | String | No |
data_source_interfaces (nxos.devices.configuration.sflow)
Section titled “data_source_interfaces (nxos.devices.configuration.sflow)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| interface_type | Choice | ethernet, port-channel | Yes | |
| interface_id | Any | String or Integer[min: 0] | Yes |
Examples
Section titled “Examples”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: managementExample 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.1Example 3: sFlow sampling on selected Ethernet and port-channel data sources (sflow data-source interface <interface>)
nxos: devices: - name: LEAF1 configuration: feature: sflow: true sflow: agent_ip: 10.0.0.1 collectors: - address: 10.92.198.113 vrf: management data_source_interfaces: - interface_type: ethernet interface_id: 1/10 - interface_type: port-channel interface_id: 10Examples
Section titled “Examples”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: managementExample 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