Operation Manual – sFlowH3C S5500-EI Series Ethernet Switches Chapter 1 sFlow Configuration1-21.1.2 Operation of sFlowsFlow operates as follows:1) With sFlow enabled, a physical port encapsulates received data into packets andsends them to the sFlow agent.2) The sFlow agent periodically collects interface statistics on all sFlow enabledports.3) When the sFlow packet buffer overflows or the one-second timer expires, thesFlow agent sends the sFlow packets to the specified sFlow collector.1.2 Configuring sFlowFollow these steps to configure sFlow:To do… Use the command… RemarksEnter system view system-view —Configure an IP addressfor the sFlow agent sflow agent ip ip-address RequiredNot configured by default.Specify the IP addressand port number of thesFlow collectorsflow collector ipip-address [ portport-num ]RequiredNot specified by default.Set the sFlow interval sflow intervalinterval-timeOptional20 seconds by default.Enter interface view interface interface-typeinterface-number —Enable sFlow in theinbound or outbounddirectionsflow enable { both |inbound | outbound }RequiredNot enabled by default.Specify the sFlowsampling modesflow sampling-mode{ determine | random }Optionalrandom by default.Currently, the determinemode is not supported onS5500-EI series Ethernetswitches.Specify the sFlowsampling rate sflow sampling-rate rate Optional200000 by default.