C
HAPTER
25
| Flow Sampling Commands
ā 807 ā
sflow sample This command configures the packet sampling rate. Use the no form to
restore the default rate.
SYNTAX
sflow sample rate
no sflow sample
rate - The packet sampling rate, or the number of packets out of
which one sample will be taken. (Range: 256-16777215 packets)
DEFAULT SETTING
Disabled
COMMAND MODE
Interface Configuration (Ethernet)
EXAMPLE
This example sets the sample rate to 1 out of every 100 packets.
Console(config)#interface ethernet 1/9
Console(config-if)#sflow sample 100
Console(config-if)#
sflow source This command enables sFlow on the source ports to be monitored. Use the
no form to disable sFlow on the specified ports.
SYNTAX
[no] sflow source
DEFAULT SETTING
Disabled
COMMAND MODE
Interface Configuration (Ethernet)
EXAMPLE
This example enables flow control on ports 9 through 16.
Console(config)#interface ethernet 1/9
Console(config-if)#sflow source
Console(config-if)#