Switch Management Commands 2082User GuidelinesLower sampling numbers cause more samples to be collected and increase theload on the CPU. Setting a sampling rate of 1024 on a large number of portsmay tax the CPU beyond it's ability to deliver the packets to the receiver.Lowering the sampling rate (higher numerical value) will help to ensure thatall collected samples can be sent to the receiver. The sflow instance must beconfigured using the sflow destination owner command before thiscommand can successfully execute.Exampleconsole(config)#sflow 1 sampling gigabitethernet 1/0/2 1500 50sflow sampling (Interface Mode)Use the sflow sampling command in Interface Mode to enable a new sflowsampler instance for this data source if rcvr_idx is valid. Use the no form ofthis command to reset sampler parameters to the default.Syntaxsflow rcvr-index sampling sampling-rate [size]no sflow rcvr-index sampling• rcvr-index — The sFlow Receiver for this sFlow sampler to which flowsamples are to be sent. If no receiver is configured, then no packets willbe sampled. Only active receivers can be set. If a receiver expires, then allsamplers associated with the receiver will also expire. (Range: 1 - 8).• sampling-rate — The statistical sampling rate for packet sampling fromthis source. A sampling rate of 1 counts all packets. A rate of 0 disablessampling. A value of n means that out of n incoming packets, 1 packetwill be sampled. (Range: 1024 - 65536).• size — The maximum number of bytes that should be copied from thesampler packet (Range: 20 - 256 bytes).Default ConfigurationThere are no samplers configured by default.There is no default sampling rate.The default maximum header size is 128.