Command Line Reference
Network Management And Monitor...
SFLOW Configuration
10 min
show sflow show sflow \[command] show sflow \[purpose] display sflow configuration information \[view] system configuration view \[use cases] sonic# show sflow sflow global information sflow admin state up sflow sample direction rx sflow polling interval 0 sflow agentid ethernet12 1 collectors configured name 1 ip addr 10 1 1 1 udp port 6343 show sflow interface ethernet show sflow interface ethernet \[command] show sflow interface ethernet interface name \[purpose] display the packet sampling rate for flow sampling \[view] system configuration view \[use cases] sonic# show sflow interface ethernet 19 sflow interface configurations + + + + \| interface | sampling rate | sampling direction | +=============+=================+======================+ + + + + sflow enable sflow enable \[command] sflow enable \[purpose] enable sflow function \[view] system configuration view \[usage scenario] the sflow agent offers two sampling methods for analyzing network traffic conditions from different perspectives flow sampling and counter sampling flow sampling involves the sflow agent device sampling and analyzing packets on specified interfaces based on specific sampling directions and ratios it aims to capture detailed information about packet data content, facilitating monitoring and analysis of network behaviors counter sampling, on the other hand, involves the sflow agent device periodically collecting traffic statistics information from interfaces the sampling data collected by counter sampling is detailed in the table below unlike flow sampling, counter sampling focuses solely on the quantity of traffic on interfaces, rather than the specifics of traffic content \[use cases] sonic# configure sonic(config)# sflow enable sflow collector sflow collector \[command] sflow collector name a b c d \[rf vrf name | port ] no sflow collector name \[purpose] configure sflow collector address \[parameter] true 126,535#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] system configuration view \[use cases] sonic# configure sonic(config)# sflow collector test 192 168 0 100 6364 sflow agent id sflow agent id \[command] sflow agent id {ethernet|vlan|loopback|link aggregation} id no sflow agent id \[purpose] configure the ip address of the sflow agent \[parameter] true 275,386#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type \[view] system configuration view \[use cases] sonic# configure sonic(config)# sflow agent id loopback 0 sflow polling interval sflow polling interval \[command] sflow polling interval { number |0} no sflow polling interval \[purpose] configure sflow counter sampling interval \[parameter] true 138,523#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[view] system configuration view \[use cases] sonic# configure sonic(config)# sflow polling interval 100 sflow sample rate sflow sample rate \[command] sflow sample rate number no sflow sample rate \[purpose] configure sflow sampling rate \[parameter] true 123,538#2166ae #4283c7 unhandled content type #2166ae #4283c7 unhandled content type unhandled content type unhandled content type \[view] interface view \[use cases] sonic(config)# interface ethernet 19 sonic(config if 19)# sflow sample rate 8500 sflow sample direction {rx|tx|both} sflow sample direction {rx|tx|both} \[command] sflow sample direction {rx|tx|both} \[purpose] configure sflow sample direction \[view] interface view and system configuration view \[use cases] sonic(config)# sflow sample direction rx
