ip sflow export

This command enables the export of sFlow statistics on a network interface. The sFlow function on the network interface can be enabled if the Firewall function (section ip firewall disable) is disabled on the interface; otherwise, the export of sFlow statistics is configured in the Firewall rule (section action).

The use of a negative form (no) of the command disables the export of sFlow statistics on a network interface.

Syntax
[no] ip sflow export
Parameters

The command does not contain parameters.

Required privilege level

15

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-SERIAL

CONFIG-PORT-CHANNEL

CONFIG-CELLULAR-MODEM

CONFIG-E1

CONFIG-MULTILINK

CONFIG-VTI

CONFIG-GRE

CONFIG-IP4IP4

CONFIG-BRIDGE

CONFIG-LT

CONFIG-PPPOE

Example
esr(config-if-gi)# ip sflow export
CODE

port

This command defines the port of the sFlow service on the statistics collection server.

The use of a negative form (no) of the command sets the default value.

Syntax
port <PORT>
no port
Parameters

<PORT> – UDP port number, set in the range of [1..65535].

Default value

6343

Required privilege level

15

Command mode

CONFIG-SFLOW-HOST

Example
esr(config-sflow-host)# port 5556
CODE

sflow collector

The command is used to set partnership relations between NTP servers and to switch to CONFIG-NTP command mode.

The use of a negative form (no) of the command removes a specific carrier information.

Syntax
[no] sflow collector <ADDR>
Parameters

<ADDR> – collector IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255].

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# sflow collector 10.100.100.1
esr(config-sflow-host)#
CODE

sflow enable

This command enables sFlow on the router.

The use of a negative form (no) of the command disables sFlow on the router.

Syntax
[no] sflow enable
Parameters

The command does not contain parameters.

Default value

Process disabled.

Required privilege level

15

Command mode

CONFIG

Example
esr(config)# sflow enable
CODE

sflow poll-interval

This command sets the interval after which the information about the counters of the network interface is obtained.

The use of a negative form (no) of the command sets the default value.

Syntax
sflow poll-interval <TIMEOUT>
no sflow poll-interval
Parameters

<TIMEOUT> – interval after which the information about the network interface counters is retrieved takes the value [1..300].

Default value

10 seconds

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# sflow poll-interval 30
CODE

sflow sampling-rate

Set the rate of sending the unchanged user traffic packets to sFlow collector.

The use of a negative form (no) of the command sets the default value.

Syntax
sflow sampling-rate <RATE>
no sflow sampling-rate
Parameters

<RATE> – rate of sending the user traffic packets to the collector, takes the value of [1..65535]. If the frequency value is 10, one packet out of ten will be sent to the collector.

Default value

1000

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# sflow sampling-rate 100
CODE

show sflow configuration

The command displays sFlow agent configuration parameters.

Syntax
show sflow configuration
Parameters

The command does not contain parameters.

Required privilege level

1

Command mode

ROOT

Example
esr# show sflow configuration
sFlow configuration:
Global state:   Enabled
Sample rate:    1000
Poll interval:  10
Host: 115.0.0.10  Port: 6800
Host: 115.0.0.20  Port: 6343
Host: 115.0.0.30  Port: 6343
CODE