sflow collector

Use this command to configure the collector details such as the collector IPv4 address, port number, receiver time-out and datagram size.

Use the no form of this command to disable the sFlow collector.

Command Syntax

Copy
sflow (collector-id <1-5>|) collector A.B.C.D port <1024-65535> receiver-time-out <0-2147483647> max-datagram-size <200-9000> (vrf WORD|)
no sflow collector (A.B.C.D port <1024-65535>|)

Parameter

collector-id <1-5>

(Optional) Specifies the name of the Collector instance identifier. If the collector-id is not specified, the ID will be 1.

collector A.B.C.D

Collector IPv4 address. This address must be reachable via the management VRF.<1024-65535>

port <1024-65535>

Collector UDP Port number. The default port number is 6343.

receiver-time-out <0-2147483647>

Receiver time out value in seconds. Zero means no timeout. Upon timeout, value collector information is removed, stopping any ongoing sampling.

max-datagram-size <200-9000>

Maximum datagram size in bytes that can be sent to the collector.

vrf WORD

(Optional) Specifies the User defined VRF to reach the collector.

Default

Disabled.

Command Mode

Configure mode

Applicability

This command was introduced before OcNOS version 1.3. Introduced the collector-id and vrf parameters in the OcNOS version 6.5.1.

Example

Copy
#configure terminal
(config)#sflow collector 2.2.2.2 port 1111 receiver time-out 30 max-datagram-size 500
 
(config)#no sflow collector
Copy
OcNOS(config)#interface xe12
OcNOS(config-if)#sflow direction ingress
OcNOS(config-if-sflow)#sampling-rate 1024
OcNOS(config-if-sflow)#max-header-size 256
OcNOS(config-if-sflow)#exit
OcNOS(config-if)#sflow enable
OcNOS(config-if)#sflow poll-interval 10
OcNOS(config-if)#sflow collector-id 3