OcNOS-RON : System Management Guide : System Management Command Reference : sFlow Commands : sflow sampling-rate
sflow sampling-rate
Use this command to set the sampling rate on an interface. Any change in the sampling rate restarts the ongoing sampling of existing data-source interfaces, if any.
Use the no form of this command to disable the sFlow sampling rate.
Note: Packets to CPU is rate limited. In case of unknown unicast, rate limit is applied to such packets as well as sampled data packets.
Command Syntax
sflow sampling-rate <1024-16777215> direction (ingress | egress) max-header-size <128-256>
no sflow sampling-rate direction (ingress | egress)
Parameters
<1024-16777215>
 
Sampling rate
direction
The direction of sampling an interface:
ingress
Ingress traffic
egress
Egress traffic
<128-256>
Maximum header size in bytes
Default
By default, sFlow sampling rate is disabled.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface xe1
(config-if)#sflow sampling-rate 1024 direction ingress max-header-size 200
(config-if)#no sflow sampling-rate direction ingress
 
 
Last modified date: 08/28/2023