OS10 Enterprise Edition User Guide Release


Sample-rate configuration

Sampling rate is the number of packets skipped before the sample is taken. If the sampling rate is 4096, one sample generates for every 4096 packets observed.

  • Set the sampling rate in CONFIGURATION mode, from 4096 to 65535. The default is 32768.
    sflow sample-rate 
  • Disable packet sampling in CONFIGURATION mode.
    no sflow sample-rate
  • View the sampling rate in EXEC mode.
    show sflow
Configure sFlow sampling rate
OS10(config)# sflow sample-rate 4096
View sFlow packet header size
OS10# show sflow
                                 sFlow services are enabled
                                 Management Interface sFlow services are disabled
                                 Global default sampling rate: 4096
                                 Global default counter polling interval: 20
                                 Global default extended maximum header size: 128 bytes
                                 Global extended information enabled: none
                                 1 collector(s) configured
                                 Collector IP addr: Agent IP addr: UDP port:6343 VRF:Default
                                 31722 UDP packets exported
                                 0 UDP packets dropped
                                 34026 sFlow samples collected
View sFlow running configuration
OS10# show running-configuration sflow
                                 sflow enable
                                 sflow max-header-size 80
                                 sflow polling-interval 20
                                 sflow sample-rate 4096
                                 sflow collector agent-addr 6767 max-datagram-size 800
                                 sflow collector agent-addr 6666
                                 interface ethernet1/1/1
                                 sflow enable

Rate this content

Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\