sFlow
The nv unset
commands remove the configuration you set with the equivalent nv set
commands. This guide only describes an nv unset
command if it differs from the nv set
command.
nv set system sflow agent interface
Configures the sFlow agent interface.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow agent interface eth0
nv set system sflow agent ip
Configures the sFlow agent IP address or prefix.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow agent ip 10.0.0.0/8
nv set system sflow collector
Configures the IP address of the designated sFlow collector.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow collector 192.0.2.100
nv set system sflow collector <collector-ip> interface
Configures the interface for the designated sFlow collector.
Command Syntax
Syntax | Description |
---|---|
<collector-ip> |
The IP address of the collector. |
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow collector 192.0.2.200 interface eth0
nv set system sflow collector <collector-ip> port
Configures the UDP port number for the designated sFlow collector.
Command Syntax
Syntax | Description |
---|---|
<collector-ip> |
The IP address of the collector. |
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow collector 192.0.2.100 port 6344
nv set system sflow dropmon hw
Configures sFlow to monitor dropped packets in hardware.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow dropmon shw
nv set system sflow poll-interval
Configures the sFlow polling interval in seconds.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow poll-interval 20
nv set system sflow sampling-rate default
Configures the sFlow sampling rate to use the default rate.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate default
nv set system sflow sampling-rate speed-100m
Configures the sampling rate in number of packets for 100M interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate speed-100m 40000
nv set system sflow sampling-rate speed-1g
Configures the sampling rate in number of packets for 1G interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$
nv set system sflow sampling-rate speed-10g
Configures the sampling rate in number of packets for 10G interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate speed-10G 10000
nv set system sflow sampling-rate speed-25g
Configures the sampling rate in number of packets for 25G interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate speed-25G 20000
nv set system sflow sampling-rate speed-40g
Configures the sampling rate in number of packets for 40G interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate speed-40G 40000
nv set system sflow sampling-rate speed-50g
Configures the sampling rate in number of packets for 50G interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate speed-50G 50000
nv set system sflow sampling-rate speed-100g
Configures the sampling rate in number of packets for 100G interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate speed-100G 100000
nv set system sflow sampling-rate speed-200g
Configures the sampling rate in number of packets for 200G interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate speed-200G 200000
nv set system sflow sampling-rate speed-400g
Configures the sampling rate in number of packets for 400G interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate speed-4000G 400000
nv set system sflow sampling-rate speed-800g
Configures the sampling rate in number of packets for 800G interfaces.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow sampling-rate speed-800G 800000
nv set system sflow state
Enables and disables sFlow; a monitoring protocol that samples network packets, application operations, and system counters.
Version History
Introduced in Cumulus Linux 5.11.0
Example
cumulus@switch:~$ nv set system sflow state enabled