1512 Sflow Commands
Command Mode
Global Configuration mode.
User Guidelines
This command has no user guidelines.
Example
console(config)#sflow 1 sampling gigabitethernet
1/0/2 1500 50
sflow sampling (Interface Mode)
Use the sflow sampling command in Interface Mode to enable a new sflow
sampler instance for this data so urce if rcvr_idx is valid. Use t he "no" form of
this command to reset sampler parameters to the default.
Syntax
sflow
rcvr-index
sampling

sampling-rate

[
size
]
no sflow
rcvr-index
sampling
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 recei ver expires, then all
samplers associated with the receiver will also expire. (Range: 1 - 8).

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).
Default Configuration
There are no samplers configured by default.
The default sampling rate is 0.
The default maximum header size is 128.
2CSPC4.XCT-SWUM2XX1.book Page 1512 Monday, October 3, 2011 11:05 AM