Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.6
Download PDF
Copy Link

system sflow

Use this command to add or change the IP address and UDP port that FortiGate sFlow agents use to send sFlow datagrams to an sFlow collector.

FortiOS implements sFlow version 5. You can configure one or more FortiGate interfaces as sFlow agents that monitor network traffic and send sFlow datagrams containing information about traffic flow to an sFlow collector.

sFlow is a network monitoring protocol. sFlow is typically used to provide an overall traffic flow picture of your network. You usually operate sFlow agents on switches, routers, and firewalls in your network, collect traffic data from all of them, and use a collector to show traffic flows and patterns. For more information about sFlow, see www.sflow.org.

config system sflow
    set collector-ip {ipv4 address}   IP address of the sFlow collector that sFlow agents added to interfaces in this VDOM send sFlow datagrams to (default = 0.0.0.0).
    set collector-port {integer}   UDP port number used for sending sFlow datagrams (configure only if required by your sFlow collector or your network configuration) (0 - 65535, default = 6343). range[0-65535]
    set source-ip {ipv4 address}   Source IP address for sFlow agent.
end

Additional information

The following section is for those options that require additional explanation.

collector-ip <ipv4_address>

Enter the IP address of the sFlow collector that sFlow agents should send sFlow datagrams to.

collector-port <port_number>

The UDP port number that the sFlow Agent on the FortiGate uses to send sFlow Datagrams to the sFlow Collector. The default value is 6343.

Don’t change this setting unless the sFlow Collector or network configuration requires you to change it.

source-ip <ipv4_address>

The source IPv4 address that the FortiGate uses to send sFlow Datagrams to the sFlow Collector

This setting is optional. If you don't configure a source IP address, the FortiGate uses the source IP address of the port through which it sends the sFlow Datagram.

.

system sflow

Use this command to add or change the IP address and UDP port that FortiGate sFlow agents use to send sFlow datagrams to an sFlow collector.

FortiOS implements sFlow version 5. You can configure one or more FortiGate interfaces as sFlow agents that monitor network traffic and send sFlow datagrams containing information about traffic flow to an sFlow collector.

sFlow is a network monitoring protocol. sFlow is typically used to provide an overall traffic flow picture of your network. You usually operate sFlow agents on switches, routers, and firewalls in your network, collect traffic data from all of them, and use a collector to show traffic flows and patterns. For more information about sFlow, see www.sflow.org.

config system sflow
    set collector-ip {ipv4 address}   IP address of the sFlow collector that sFlow agents added to interfaces in this VDOM send sFlow datagrams to (default = 0.0.0.0).
    set collector-port {integer}   UDP port number used for sending sFlow datagrams (configure only if required by your sFlow collector or your network configuration) (0 - 65535, default = 6343). range[0-65535]
    set source-ip {ipv4 address}   Source IP address for sFlow agent.
end

Additional information

The following section is for those options that require additional explanation.

collector-ip <ipv4_address>

Enter the IP address of the sFlow collector that sFlow agents should send sFlow datagrams to.

collector-port <port_number>

The UDP port number that the sFlow Agent on the FortiGate uses to send sFlow Datagrams to the sFlow Collector. The default value is 6343.

Don’t change this setting unless the sFlow Collector or network configuration requires you to change it.

source-ip <ipv4_address>

The source IPv4 address that the FortiGate uses to send sFlow Datagrams to the sFlow Collector

This setting is optional. If you don't configure a source IP address, the FortiGate uses the source IP address of the port through which it sends the sFlow Datagram.

.