![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/9/13/913595a3-acbb-41ef-943e-565cce3e64fc/913595a3-acbb-41ef-943e-565cce3e64fc-bg4bd.png)
sFlow Commands 1213
Default Configuration
There are no pollers configured by default.
The default poll interval is 0.
Command Mode
Interface Configuration (Ethernet) mode
User Guidelines
This command has no user guidelines.
Example
console(config-if-1/g2)#sflow 1 polling 6055
sflow sampling
Use the sflow sampling command to enable a new sflow sampler instance for
this data source if rcvr_idx is valid. Use the “no” form of this command to
reset sampler parameters to the default.
Syntax
sflow
rcvr-index
sampling ethernet
interfaces
sampling-rate
[size]
no sflow
rcvr-index
sampling ethernet
interfaces
•
rcvr-index
—The sFlow Receiver for this sFlow sampler to which flow
samples are to be sent. If no receiver is configured, then no packets will be
sampled. Only active receivers can be set. If a receiver expires, then all
samplers associated with the receiver will also expire. (Range: 1–8).
•
interfaces
— The list of interfaces to poll.
•
sampling-rate
—The statistical sampling rate for packet sampling from this
source. A sampling rate of 1 counts all packets. A rate of 0 disables
sampling. A value of n means that out of n incoming packets, 1 packet will
be sampled. (Range: 1024–65536).
•
size
—The maximum number of bytes that should be copied from the
sampler packet (Range: 20–256 bytes).