sampling-rate
Use this command to set sFlow sampling rate. It is applicable for both sFlow Global and Interface mode. sFlow interface config take precedence over global sFlow configuration.
Use show sflow global to verify this configuration.
Command Syntax
sampling-rate <1024-16777215>
Parameters
<1024-16777215>
Specifies the sampling rate. The default value is 16777215.
Default
None
Command Mode
sFlow interface config mode
sFlow global config mode
Applicability
This command was introduced before OcNOS version 1.3 The sFlow interface config mode and sFlow global config mode is introduced in OcNOS version 6.6.1
Examples
OcNOS#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#sflow poll-interval 60
OcNOS(config)#sflow direction egress
OcNOS(config-global-sflow)#sampling-rate 3000
OcNOS(config-global-sflow)#max-header-size 30
OcNOS(config-global-sflow)#exit
OcNOS(config)#
OcNOS#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#interface xe10
OcNOS(config-if)#sflow direction egress
OcNOS(config-if-sflow)#sampling-rate 3000
OcNOS(config-if-sflow)#max-header-size 30
OcNOS(config-if-sflow)#exit
OcNOS(config)#